<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="referrer" content="always">
<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta name="referrer" content="always">
<meta content="telephone=no, address=no" name="format-detection">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>接文化汤圆赢宝玩大奖</title>


<script type='text/javascript'>

(function(){
    var element = new Image();
    var hdGameHost = '';
    Object.defineProperty(element,'id',{get:function(){window.location.href="https://hd.faisco.cn/empty.jsp?aid=15981322&gameId=6&openId=oosnVwtFox7jHfxzydnrM0SfQy9c"}});
    console.log('%c'+g_rem, element);
})();

var fromCanal = '-1';
if(false){
    parent = top = window;
}

    var g_serverTime = 1550544990376;
    var g_timeDeviation = g_serverTime - new Date().getTime(); //服务器时间与系统时间偏差
    var g_rem = 20;
    (function(win){
        var orientationX = false; //是否横屏进来
        if(win.orientation==90||win.orientation==-90){
            orientationX = true;
        }
        var docEl = win.document.documentElement,tid;
        function refreshRem1(){
            g_rem = docEl.getBoundingClientRect().width/16;
            !g_rem && (g_rem = 20);
            docEl.style.fontSize = g_rem + 'px';
        }
        function refreshRem2(){
            g_rem = docEl.getBoundingClientRect().width/16;
            if(!g_rem){
                return refreshRem1();
            }
            var width = docEl.getBoundingClientRect().width;
            var d = win.document.createElement('div');
            d.style.width = '1rem';
            d.style.display = "none";
            docEl.firstElementChild.appendChild(d);
            var defaultFontSize = parseFloat(window.getComputedStyle(d, null).getPropertyValue('width'));
            docEl.firstElementChild.removeChild(d);
            docEl.style.fontSize = (g_rem/defaultFontSize)*100 + '%';
        }
        // 志江 已补上
        var refreshRem = /vivo(?!\s?x23)|HUAWEI|OPPO|ONEPLUS A5000/i.test(navigator.userAgent) ? refreshRem2 : refreshRem1;
        try{
            win.addEventListener("orientationchange", function() {//触发手机横屏竖屏事件
                if(orientationX){
                    location.reload();
                }
            }, false);
        }catch(e){}
        win.addEventListener('pageshow', function(e) {
            if (e.persisted) {
                clearTimeout(tid);
                tid = setTimeout(refreshRem, 100);
            }
        }, false);
        refreshRem();
    })(window);

</script>


<link rel="preload" href="//hdg.faisys.com/js/comm/jquery/jquery-core.min.js?v=201901241127" as="script" />

<link href="//hdg.faisys.com/css/base.min.css?v=201901241127" rel="stylesheet" type="text/css" />

<link href="//hdg.faisys.com/css/bhmn.min.css?v=201901241127" rel="stylesheet" type="text/css" />

<link href="//hdg.faisys.com/css/fission.min.css?v=201901241127" rel="stylesheet" type="text/css" />

<link href="//hdg.faisys.com/css/comm/weui.min.css?v=201901241127" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>


<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=IGEBZ-2CYKR-Z4XWD-WCWQ3-5HFJS-5TF2P"></script>

<script type="text/javascript">
(function() {
var fs = document.createElement("script");
fs.src = "//fe.faisys.com/jssdk_1_0/js/hawkEye.min.js?v=201809261929";
window.FAI_HAWK_EYE = {};
window.FAI_HAWK_EYE.jssdk_report_url = "//report.fkw.com/js/report";
window.FAI_HAWK_EYE.jssdk_appid = 5002;
window.FAI_HAWK_EYE.fai_aid = 15981322;
window.FAI_HAWK_EYE.fai_bs_aid = 15981322;
window.FAI_HAWK_EYE.fai_bs_id = 6;
window.FAI_HAWK_EYE.fai_bs_wid = 0;
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(fs, s);
})();</script>

<script type='text/javascript'>
;(function(){
    var fList = ["WeixinJSBridge","document.querySelector('#btnOk').click","document.querySelector('.msg').innerText"];
    var filter = function(){var oldErr=window.onerror;if(!oldErr)return;window.onerror=function(msg){for(var i=0;i<fList.length;i++){if(~msg.indexOf(fList[i])){return}}oldErr.apply(this,arguments)}};
    window.onerror ? filter() : (document.getElementsByTagName("script")[0].onload = filter);
})();
</script>

</head>
<body class="gameTpl_-1">


<!-- loading页面 -->
<div id="preloadPage" class="bg">

    <div class="spinner">
      <div class="spinner-container container1">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
      <div class="spinner-container container2">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
      <div class="spinner-container container3">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
    </div>

    <div class="info"><span id="loadPercent">0</span>%</div>
    <div id="userPreload" data-src="http://7020498.h40.faiusr.com/4/0WNbID7mV3OldDZ9Qz4ld5N4AjY2gDM.png"></div>
</div>
<script type="text/javascript">
(function(){var _hasInit=false;var _hasFinish=false;var _hasStrting=false;var percentText=document.getElementById('loadPercent');var endCallback;function _setPercentage(percent){percentText.innerText=percent}function _initCustomPreLoad(callback){var logoImg=document.getElementById('preloadImg');function initLogoImg(){var img=logoImg;var h=img.height;var w=img.width;var bottomPageInfoDeg=-Math.atan(w/h)-Math.PI/2;var canvas=document.getElementById('preloadCanvas');var ctx=canvas.getContext('2d');var ratio=(window.devicePixelRatio||1)/(ctx.backingStorePixelRatio||ctx.webkitBackingStorePixelRatio||ctx.mozBackingStorePixelRatio||ctx.msBackingStorePixelRatio||ctx.oBackingStorePixelRatio||ctx.backingStorePixelRatio||1);var drawImg=function(){ctx.fillStyle='#FFFFFF';ctx.fillRect(0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio);ctx.drawImage(img,0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio)};if(h===w){if(h>3.5*g_rem){h=w=3.5*g_rem}drawImg=function(){ctx.save();ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,w/2*ratio,0,2*Math.PI);ctx.clip();ctx.fillStyle='#FFFFFF';ctx.fill();ctx.drawImage(img,0.2*g_rem*ratio,0.2*g_rem*ratio,w*ratio,h*ratio);ctx.restore()}}else{if(w>h&&w>8*g_rem){h=8*g_rem*h/w;w=8*g_rem}else{if(h>w&&h>8*g_rem){w=8*g_rem*w/h;h=8*g_rem}}}canvas.width=(w+0.4*g_rem)*ratio;canvas.height=(h+0.4*g_rem)*ratio;canvas.style.width=w+0.4*g_rem+'px';canvas.style.height=h+0.4*g_rem+'px';if(h===w){ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,canvas.width/2,0,2*Math.PI);ctx.clip()}ctx.strokeStyle='#69C5FF';ctx.lineWidth=8*g_rem*ratio;_setPercentage=function(percent){percentText.innerText=percent;ctx.beginPath();ctx.arc(canvas.width/2,canvas.height/2,4*g_rem*ratio,bottomPageInfoDeg,bottomPageInfoDeg+percent*(2*Math.PI/100));ctx.stroke();drawImg()};callback&&callback()}if(logoImg.complete){initLogoImg()}else{logoImg.onload=initLogoImg}}function init(callback){if(false)return;var preloadStyle=1;if(_hasInit)return finish();function finish(){callback&&callback();if(!_hasInit){_setPercentage(0);_hasInit=true}}window.scrollTo(0,0);if(preloadStyle===3)_initCustomPreLoad(finish);if(preloadStyle===1)finish()}function start(){if(_hasStrting)return;init(function(){_hasStrting=true;_hasFinish=false;var percent=0;function go(){var time=1000/60;time*=_hasFinish?3:Math.max(3,percent/10);if(percent===99&&_hasFinish){_setPercentage(100);_hasStrting=false;if(endCallback){endCallback();endCallback=null}var preloadPage=document.getElementById('preloadPage');setTimeout(function(){preloadPage.style.display='none'},500);preloadPage.className+=' leftClose';return}setTimeout(function(){var prevPercent=percent;percent=Math.min(percent+(_hasFinish?8:1),99);if(prevPercent!==percent){_setPercentage(percent)}go()},time)}go()})}function end(callback){if(_hasFinish)return;if(!_hasStrting)return;init(function(){_hasFinish=true;endCallback=callback})}start();window.preloadEnd=end})();
</script>

<!-- 广告页 -->
<div class="advertisingBox swiper-container hide">
  <div class="swiper-wrapper"><!--内容自动添加--></div>
  <div class="swiper-pagination hide"></div>

    <div class="skipTips hide">
      <span class="seconds"></span><!--
  --><span class="skipTipsText"></span>
    </div>

</div>
    <input id="rightImg" type="hidden" value="https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg-ISF4wUogPCZlwIwczh4.png" >
    <div class="ajaxLoadBg">
        <div class="ajaxLoadBar "></div>
    </div>
    <div class="body">
        <div class="home">
            <div id="homeBgBox">
                <img id="homeBg" src="http://7020498.h40.faiusr.com/2/164/ACgIABACGAAgvoLAxQUo7eGYxgMwgAU4wAw.jpg"/>
            </div>
            <div class="gameInfoBox">
                <div class="titleImg imgContainer absCenter">
                    <img id="titleImg" class="slaveImg abs" src="https://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg8cv10gUo8Oq0xwYw9gQ4rAI.png" style="width:15.744rem;height:8.277333333333333rem;top:0.3413333333333333rem;left:0.128rem;"/>
                </div>
            </div>


	<div id='joinNumLine' class='joinNumLine absCenter' style='top:18.688rem;left:3.498666666666667rem;color:rgb(172, 0, 0);font-size:0.7rem; text-shadow:rgb(255, 255, 255) -1px -1px 0px, rgb(255, 255, 255) 0px -1px 0px, rgb(255, 255, 255) 1px -1px 0px, rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) 1px 1px 0px, rgb(255, 255, 255) 0px 1px 0px, rgb(255, 255, 255) -1px 1px 0px, rgb(255, 255, 255) -1px 0px 0px;'>
	已有 <span id='joinNum' class="specil" style="color:rgb(255, 62, 7);font-size:0.8rem;text-shadow:rgb(255, 255, 255) -1px -1px 0px, rgb(255, 255, 255) 0px -1px 0px, rgb(255, 255, 255) 1px -1px 0px, rgb(255, 255, 255) 1px 0px 0px, rgb(255, 255, 255) 1px 1px 0px, rgb(255, 255, 255) 0px 1px 0px, rgb(255, 255, 255) -1px 1px 0px, rgb(255, 255, 255) -1px 0px 0px;">100</span> 人参加活动</div>


<div id="playInfo" class="abs editTarget-playInfo hide" style="width:9rem;text-align:center;">
	<div class="dayPlayHint">您今天还有 <span id="count" class="specil todayPlayCount"></span> 次参与机会</div>
	<div class="totalPlayHint">您还有 <span class="totalPlayCount specil"></span> 次参与机会</div>
	<div class="dayPlayHint4Total">今天有 <span class="count specil todayPlayCount"></span> 次</div>
</div>
            <div id="startBtn" class="startBtn imgContainer absCenter" style="top:0rem;">
                <img id="startBtnImg" class="slaveImg abs" src="https://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg9sv10gUokP7_kwcwhAI4bg.png" style="width:6.528rem;height:2.7733333333333334rem;top:20.736rem;left:4.693333333333333rem;"/>
            </div>
        </div>
        <div class="gameBox hide gameBgBox">
            <div id="gameBgBox">
                <img id="gameBg" src="http://7020498.h40.faiusr.com/2/164/ACgIABACGAAg3oLAxQUoz9fKxAEwgAU4wAw.jpg" style="width:100%;height:auto;"/>
            </div>

<div id="gameTopBar" class="gameTopBar" style="color:rgb(238, 100, 70);background-color:rgba(255, 255, 255, 0)">
	<div class="userInfoBox">
		<div  class="userImgBox" style="border-color:rgba(255, 255, 255, 0.298039)"><img src="http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132" class="userImg" /></div>

			<div id="grade" class="grade">0</div>

	</div>
	<div class="timeBox">
		时间<br><span class="time">0</span>
	</div>
</div>
            <div id="gameLayerBox">
                <div id="stayPlace">
                    <!-- <img id="stayPlaceImg" src="http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg8ILAxQUo-oLTlgYwgAU45gE.png"/> -->
                    <div id="stayPlaceImg"></div>
                </div>

                <canvas id="canvas" >你的浏览器不支持canvas，请换个牛逼点的浏览器，谢谢</canvas>

            </div>
            <div id="hint"></div>
            <div class="timeUpImg hide"></div>
        </div>

<div id="spxdPage"></div>
<div id='_hdOpenIdDiv' class='hide'>oosnVwtFox7jHfxzydnrM0SfQy9c</div><!-- 存放openId的节点 -->
<div id="pageMusic" style="position:absolute;top:0;height:0;"></div>
	<div  class="ruleImg imgContainer absCenter" _mouseIn="0" onclick="showRule(isAnimation=false);">
	    <div id="ruleImg" class="slaveImg abs notNeedFatherChage outSpecialDivAutoFit hd-img-fillDiv" style='width:2.986666666666667rem;height:2.986666666666667rem;top:0.128rem;left:12.842666666666666rem;'></div>
	</div>



<div id="poupInfoBox">
    <div class="poupHead">
        <div class="poupTitleBox">
            <div id="actionExpBtn" class="poupTitleMune checked" _flag="2">
                <div class="item">活动说明</div>
            </div>

            <div id="ranBtn" class="poupTitleMune " _flag="1">
                <div class="item">排行榜</div>
            </div>


            <div id="prizeBtn" class="poupTitleMune" _flag="3">
                <div class="item">我的奖品<span id='Award_Round_Dot' class='redDot hide'></span></div>
            </div>
            <div id="winnerBtn" class="poupTitleMune hide" _flag="4">
                <div class="item">获奖名单</div>
            </div>

            <div class="poupSlideBar">
                <div class="slideBarTip transitionPanel"></div>
            </div>
        </div>
        <div class="poupClose"></div>
        <div style="clear:both; height:0"></div>
    </div>
    <div id="popTabBox" class="popTabBox transitionPanel" style="left:0">

        <div id="ruleBox" class="poupMain" _flag="2" style="-webkit-overflow-scrolling:touch;">
            <div class="poupMainInfo">

				<div id="awardLine" class="poupLine" data-sortKey="a" >
					<div class="mainTitle">活动奖品</div>
					<div id="awardLineBox">
					<div class='unComfortLine awardItem '><span class='awardStyle'>一等奖</span> : <span class='award'>宝玩双语阅读游戏宝盒一份</span></div>
<div class='unComfortLine awardItem '><span class='awardStyle'>二等奖</span> : <span class='award'>小兔丹尼水杯一个</span></div>
<div class='unComfortLine awardItem '><span class='awardStyle'>三等奖</span> : <span class='award'>丹尼兔一只</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>四等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>五等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>六等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>七等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='unComfortLine awardItem hide'><span class='awardStyle'>八等奖</span> : <span class='award'>价值5元小礼品</span></div>
<div class='awardItem anwei hide'><span class='awardStyle'>安慰奖</span> : <span class='award'>价值5元小礼品</span></div>

					</div>
					<div id="selfAwardLine" class="hide" style="word-wrap: break-word;"></div>
                </div>

				<div id="gameDateTime" class="poupLine" data-sortKey="b">
					<div class="mainTitle">活动时间</div>
					<p><span id="startDate">2019年2月19日 10:00</span>&nbsp;-&nbsp;<span id="endDate">2019年2月19日 19:00</span></p>
				</div>
				<div class="hostLine poupLine" data-sortKey="c">
					<div class="mainTitle">主办单位</div>
					<p><a class="hostName"   />宝宝玩英语人力行政中心</a></p>
				</div>

				<div id="skillLine" class="skillLine poupLine" data-sortKey="d">
					<div class="skillCont">
						<div class="mainTitle">技术支持</div>

						<p>页面技术由 <a class="skillName"  href="http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&mid=209854000&idx=1&sn=82241d924839270d3ea820ad2d56c01b#wechat_redirect" />凡科互动</a> 提供，技术支持方仅提供页面技术，不承担由活动引起的相关法律责任</p>
					</div>
				</div>

				<div id="explainBox" class="poupLine" data-sortKey="e">
					<div class="mainTitle">活动说明</div>

                        <p id="explaiDrawInfoBox" class="">
                            <span id="haveScore">达到 <span id="scoreLimit" class="scoreLimit">200</span><span class="gameScoreUnit">分</span><span id="exlainDrawFont">即可获得抽奖机会，</span></span>

                                <span id="directDrawInfoBox" class="">
                                    <span class="drawTotalFont">活动期间总抽奖机会共 <span id="totalDrawTimeLimit">3</span> 次，1天只能抽</span><span class="everyOneFont hide">每人<span class="dayFont">每日</span>有</span> <span id="drawTimesLimit">6</span> 次<span class="chanceFont hide">抽奖机会</span>。<br>
                                </span>

                        </p>

					<p id="explainPlayInfoBox" class="hide ">

                            <span id="rankPlayInfoBox">
                                <span class="playTotalFont">活动期间总参与机会共 <span class="playTotalLimit">10</span> 次，1天只能参与</span><span class="everyOneFont hide">每人<span class="dayFont">每日</span>有</span> <span class="playTimesLimitShow">5</span> 次<span class="chanceFont hide">参与机会</span>。<br>
                            </span>

					</p>

                    <p id="explainOnceAccessKey" class="hide">输入一次密钥即可获得一次<span class="text">抽奖</span>机会</p>
					<div id="exlainInfo">把带有价值观的汤圆拖到碗里！限内部员工</div>
				</div>
				<!--<div id="" style="font-size: 0.6rem; position: relative;" class="noMove">投诉</div>-->
			</div>
			<div class='attentionBox'>
				<div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
				<div class='holdBox'></div>
			</div>
        </div>

        <div id="rankBox" class="poupMain" _flag="1" style="-webkit-overflow-scrolling:touch;" >
        <div class="poupMainInfo">
            <div id="noRank" class=''>暂无排名</div>
            <div id="rankMain" class="getRankHeight hide">
                <div style="margin-top:0.7rem;margin-left: 0.25rem;">当前排名：<span id="rank"></span> （只显示前<span id="showRankNum">100</span>名）</div>
                <div style="padding:0rem 0.5rem">
                    <table class="rankTable" cellspacing="0" cellpadding="0">
                    <thead>
                        <tr style="line-height: 1rem;">
                        <th>排行</th>
                        <th>头像</th>
                        <th>昵称</th>
                        <th>成绩</th>
                        </tr>
                    </thead>
                    </table>
                </div>
            </div>
            <div id="rankHeight">
            <table id="rankInfoBox" class="rankTable" cellspacing="0" cellpadding="0" style="margin-top: 0;"></table>
            </div>
        </div>
            <div class='attentionBox'>
                <div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
                <div class='holdBox'></div>
            </div>
            </div>

        <div id="awardBox" class="poupMain" _flag="3" >
            <div id="awardInfoBox">
                <div id="awardInfo"><div style="line-height: 2.6rem">暂无中奖记录</div></div>

                <div id="awardContactInfo" class="hide">
                    <div class="titleLine"><span class="title">联系信息</span></div>
                    <div class="contactGroup">
                        <div class="contactItem contactName hide">姓名： <span>monica</span></div>
                        <div class="contactItem contactPhone hide">电话： <span>13200000000</span></div>

                        <div class="contactItem contactAddress hide">地址： <span>广东省广州市海...</span></div>

                    </div>
                    <div class="updateBtn abs">修改</div>
                </div>
            </div>
            <div class='attentionBox'>
                <div class='menuBtnBox' >
                    <a class='menuName'>关注我们</a>
                </div>
                <div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
                <div class='holdBox'></div>
            </div>
        </div>

        <div id="regAwardBox" class="poupMain" _flag="4" style="-webkit-overflow-scrolling:touch;">
		<div class="poupMainInfo">
		    <div id="noRegAward" class="hide" style="margin-left:3px;">尚未公布获奖名单，详情请查看活动说明</div>
		    <div id="regAwardMain" style="display:none;">

				<div class="regAwardList">
				    <div class="mainTitle">一等奖</div>
				    <div class="playerName" style="margin-bottom:12px;"></div>
				</div>

				<div class="regAwardList">
				    <div class="mainTitle">二等奖</div>
				    <div class="playerName" style="margin-bottom:12px;"></div>
				</div>

				<div class="regAwardList">
				    <div class="mainTitle">三等奖</div>
				    <div class="playerName" style="margin-bottom:12px;"></div>
				</div>

			  </div>
		</div>
		<div class='attentionBox'>
			<div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
			<div class='holdBox'></div>
		</div>
        </div>
    </div>
</div>



<div id="activityKit" class="poupMain bg hide">
    <div class="arrow" id="arrow"></div>
    <div id="tip_txt">
        <p>提示</p>
        <p style="margin-top: 0.25rem">点击锦囊即可查看活动规则、排行榜、奖品等信息。</p>
    </div>
</div>

<div id="awardUserInfoBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow:hidden;"></div>
<div id="hostInfoBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow:hidden;z-index:9999;"></div>
<div id="validteBoxerBg" class="hide" style="position:fixed; top:0; left: 0; bottom: 0; right: 0;overflow: hidden;"></div>

<div id="awardDetailBox" class="poupMain bg hide isAngular">
    <div id="forJZCouponBg">
        <div class="tipsBox">
            <div class="contain">建站商城优惠券无奖品详情页<br><a href="javascript:;" onclick="window.open('http://hd.fkw.com/news/11181')">了解更多</a></div>
        </div>
    </div>
    <div id="awardDetailScrollBox">
        <div id="awardDeailBg" class="bgfix hide"></div>
        <div class="awardCloseIcon" onclick="hg.fire('scrollEvent',true);"></div>
        <div class="awardDetail">
            <div class="hostName" style="padding: 0.7rem 2.2rem 1rem 0.7rem;text-align: left;color:#fff;word-break: break-word"></div>
            <div class="awardName"></div>
            <div class="awardSubTitle"></div>
            <div class="awardCodeTime codeTimeFixedRange"><em>使用期限</em>：<span class="codeBgTime"></span> - <span class="codeEndTime"></span></div>
            <div class="codeTimeFixedTerm hide">中奖后<span class="codeBgTime"></span>天生效，有效天数<span class="codeEndTime"></span>天</div>
            <div id="awardCollectionBtn" ontouchend="HdGame.logDog(1000045, 2);HdGame.favorite();">收藏优惠券</div>
            <div class="awardDetailWarp"></div>
        </div>
        <div class="codeImgBox">
            <div id="codeStatusBox" class="hide" style="padding-top:1.25rem;color:#777">
                <div id="codeStatusBtn"></div>
                <div id="codeStatusInfo">商家已将该兑奖码设置为作废<br>详情请联系商家</div>
                <div id="codeStatusTips" class="hide"><em style="font-style: normal;">请先<span class="giftNameA">兑奖券</span>，<span class="targetDateMin">1</span>天后可用</em></div>
            </div>
            <div id="codeDetailInfoBox">
                <img class="codeImg"/>
                <div class='codeLine'><span id="codeName">优惠码</span>：<span style=" max-width: 8.7rem;word-wrap: break-word;display: inline-block; vertical-align: middle;"class="code selectText"></span><span class="copy">复制券码</span></div>
                <div class="codeOptInfo"></div>
                <div class="codeOptInfo_Gift"></div>
                <div class="redPacketTip hide"></div>
            </div>
        </div>
        <div class="awardBtnList">

            <div style="height:0.4rem;"></div>
            <!--兑奖券详情弹出层 -->
            <div id="ticketDetailBox">
                <p class="ticketitle"><span class="text">兑奖券详情</span></p>
                <div class="ticketInfo">
                    <div class="itemList dateLine codeTimeFixedRange">
                        <div class="title">有效日期</div>
                        <div class="box">
                            <span class="beginTime">2016.03.03</span>至<span class="endTime">2017.03.03</span>
                        </div>
                    </div>
                    <div class="itemList dateLine codeTimeFixedTerm hide">
                        <div class="title">有效日期</div>
                        <div class="box">
                            中奖后<span class="codeBgTime"></span>天生效，有效天数<span class="codeEndTime"></span>天
                        </div>
                    </div>
                    <div class="itemList timelimitLine">
                        <div class="title">可用时段</div>
                        <div class="box">
                            <div class="timelimit">周一至周日</div>
                        </div>
                    </div>
                    <div class="itemList addressLine">
                        <div class="title titleAdress">兑奖地址</div>
                        <div class="box">
                            <div class="address">地址</div>
                        </div>
                    </div>
                    <div class="itemList noticeLine">
                        <div class="title titleNotice">兑奖须知</div>
                        <div class="box">
                            <div class="notice"><pre style="word-wrap: break-word;"></pre></div>
                        </div>
                    </div>
                </div>
            </div>

            <form action=""></form>
            <div id="useStoreBox" class="initHide">
                <div class="storeTitle">
                    <span class="text">适用门店</span><span class="storeNumText">（<span id="storeNum">5</span>个）</span>
                    <span class="moreBtn">更多</span>
                </div>
                <div class="storeInfoBox">
                    <div class="locationBtn" onclick="HdGame.openStoreLocation(this)"></div>
                    <div class="info">
                        <div class="storeNameBox"><span id="storeName"></span><span id="distance"></span></div>
                        <div class="storeAdress"></div>
                    </div>
                </div>
            </div>
            <div style="height:0.4rem;"></div>
            <a style="text-decoration:none;"><div class="servicePhone awardDetailBtn"><span class="text">客服电话</span><span class="phoneIcon"></span><span class="phoneText"></span></div></a>
            <!--20180809版本划分新旧活动-->

                <a id="hostInfoDetail" style="text-decoration:none;"><div class="jumptoHostInfo awardDetailBtn"><span class="text">主办方介绍</span><div class="cell__ft"></div></div></a>

            <a id="awardCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="awardCusBtn awardDetailBtn weui-cell__bd" style="border-top:none;"><span class="text">自定义按钮（未开启）</span><span class="textDef hide">自定义按钮（未开启）</span><div class="cell__ft"></div></div></a>
            <div style="height:3.15rem;"></div>
        </div>
    </div>
    <div class="hide homePoupMask codeCopyDetailMask">
        <div class="codeCopyDetailPoup">
            长按以下文字复制券码<br>
            <div class="copyCode selectText"></div>
        </div>
    </div>
    <div class="hide bgfix codeDetailImgBox">
        <div class="absCenter imgBox">
            <img class="codeImg" style="width:9rem;height:9rem;"/>
        </div>
    </div>
    <div id="bottomCusBtnBox">
        <a id="seeFsnDetail" href="javascript:;" style="text-decoration:none;display:none;"><div class="bottomCusBtn cusBtn" style="border-top:none;"><span class="text">查看裂变情况</span></div></a>
        <a id="bottomCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="bottomCusBtn cusBtn" style="border-top:none;"><span class="text">立即兑奖</span></div></a>
        <!--<a id="WxCusBtnInfo" href="javascript:;" style="text-decoration:none;" class="hide"><div class="awardCusBtn cusBtn" style="border-top:none;"><span class="text">自定义按钮（未开启）</span><span class="textDef hide">自定义按钮（未开启）</span><div class="cell__ft"></div></div></a>-->
        <!--<a id="WxCusBtnInfo" href="javascript:;" style="text-decoration:none;"><div class="cusBtn" style="border-top:none;"><span class="text">领取微信卡券</span><div class="cell__ft"></div></div></a>-->
    </div>
</div>
<div id="storeListBox" class="bg hide">
    <div class="list"></div>
    <div class="refreshBtn hide">更新当前位置</div>
    <div class="closeBtn"></div>
</div>




<div id="informBox" class="bg hide">
    <div id="inform-reason-page">
        <div class="weui-cells__title">请选择投诉原因</div>
        <div class="weui-cells weui-cells_radio"  id="inform-reason-box">
            <label class="weui-cell weui-check__label reasonItem" for="temptShare" _index="0">
                <div class="weui-cell__bd">
                    <p>诱导分享</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="temptShare">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="shamActive" _index="1">
                <div class="weui-cell__bd">
                    <p>虚假活动</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="shamActive">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="political" _index="2">
                <div class="weui-cell__bd">
                    <p>政治敏感</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="political">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="eroticism" _index="3">
                <div class="weui-cell__bd">
                    <p>色情低俗</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="eroticism">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="rumor" _index="4">
                <div class="weui-cell__bd">
                    <p>谣言</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" class="weui-check" name="radio1" id="rumor">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
            <label class="weui-cell weui-check__label reasonItem" for="otherReason" _index="5">
                <div class="weui-cell__bd">
                    <p>其他（收集隐私信息等）</p>
                </div>
                <div class="weui-cell__ft">
                    <input type="radio" name="radio1" class="weui-check" id="otherReason">
                    <span class="weui-icon-checked"></span>
                </div>
            </label>
        </div>
        <div id="cancel-inform-btn" ontouchend="hg.fire('scrollEvent',true);">取消</div>
        <div id="next-inform-btn" class="weui-btn weui-btn_primary hide">下一步</div>
        <div id="inform-poup-tip" class="hide">投诉成功</div>
    </div>
    <div id="inform-desc-page" style="display: none;">
        <div class="weui-cells__title">投诉描述</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell" id="inform-desc-box">
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" id="informDesc" placeholder="请输入文本" rows="4"></textarea>
                    <div class="weui-textarea-counter" id="informDesc-counter"><span>0</span>/50</div>
                </div>
            </div>
        </div>
        <div id="submit-inform-btn" class="weui-btn weui-btn_primary">提交</div>
    </div>
</div>
<div id="informResultBox" class="bg hide weui">
    <div class="weui-msg">
        <div class="weui-msg__icon-area"><i class="weui-icon-success weui-icon_msg"></i></div>
        <div class="weui-msg__text-area">
            <h2 class="weui-msg__title">投诉成功</h2>
            <p class="weui-msg__desc">感谢你的参与，我们坚决反对色情、暴力、欺诈等违规信息，我们会认真处理你的投诉，维护绿色、健康的网络环境</p>
        </div>
        <div class="weui-msg__opr-area" ontouchend="hg.fire('scrollEvent',true);">
            <p class="weui-btn-area">
                <a class="confirm-btn weui-btn weui-btn_primary">确定</a>
            </p>
        </div>
        <div class="weui-msg__extra-area">
            <div class="weui-footer">
            </div>
        </div>
    </div>
</div>

	<div class="homeBtnBox specialBottom" >


	    <div id="myAwardBtn" onclick="HdGame.changePoup(3,'',true)" style="display:none;"><span class='redDot'></span></div>
	    <!--<div id="informBtn" ontouchend="HdGame.changePoup(5,'',true)">-->

	    <!--    <span>投诉</span>-->
	    </div>
	</div>

    <div id="logoImgBox" class="logoImgBox imgContainer absCenter footerBox" style="">
        <img id="logoImg" class="slaveImg abs" src="https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAgp46F4wUokPiV1QYwogM4sgM!100x100.png" style="width:2.176rem;height:2.2186666666666666rem;top:2.176rem;left:3.2853333333333334rem;"/>
    </div>


    <div class="slogan editTarget-slogan hide pointer-events layer">凡科互动-营销推广必备神器</div>

<div id="lots-wait-Box" style="display:none">
    <div id="lots-wait-img" class="editRelate-lotsPot"></div>
    <div id="lots-wait-hint">当前抽奖人数过多<br/>请稍等 <span id="lots-wait-hint-num">0</span> 秒</div>
</div>
<div id="helpGuideBox" style="display:none">


            <p>你今天已经没有抽奖机会了</br>分享给好友或群聊</p>
            <p style="margin-top:1.1rem;">
                今天将额外获得1次抽奖机会！<br/>（仅限当天首次分享）
            </p>


</div>

<div id="themeGameCodeImgBox" class="hide">
	<img id="themeGameCodeImg" _src="" >
</div>


<div class="resuleBox hide">
    <div id="resule-status-box" style="display:none">

        <div id="resule-status-scrollWrap">
            <div class="resule-bgLight"></div>
            <div id="resule-status-bird"></div>
            <div class="optContainer" style="height: 18.6rem; overflow-y:auto;">
	            <div id="resule-status-head">
	                <div class="resule-status-userImg">
	                    <img src="http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132"/>
	                </div>
	                <div id="resule-status-ribbon" class="resule-status-ribbon"></div>
	            </div>
	            <div id="resule-status-body">

	                <p class="youraward"style="font-size:0.8rem; line-height:1.2rem">您的成绩为：<span class="resuleArg" style="font-size:0.8rem;"></span><span class="result-scoreUnit"  style="font-size:0.8rem;"><span class="gameScoreUnit">分</span></span></p>
                    <p class="youraward costTime hide" style="font-size:0.8rem; line-height:1.2rem">达到该成绩用时：<span class="resuleArg" style="font-size:0.8rem;"></span><span class="result-scoreUnit"  style="font-size:0.8rem;">秒</span></p>
	                <p class="youraward special hide" style="font-size:0.8rem; line-height:1.2rem">通关并且</p>
	                <p class="beat-Percent hide">成功击败全国<span></span>%的玩家</p>
	                <p class="resule-status-minscore" style="display:none;">成绩必须达到 <span class="resuleArg resulescoreLimit"></span> <span class="gameScoreUnit">分</span>才能<span id="minscoreDrawFont">抽奖</span></p>

	                <p id="bestArg" style="margin-top:0.5rem">最佳成绩为：<span class="resuleArg"></span><span class="result-scoreUnit"><span class="gameScoreUnit">分</span></span></p>
                    <p id="bestCostTime" style="display: none" >达到最佳成绩用时：<span class="resuleArg"></span><span class="result-scoreUnit">秒</span></p>
	                <p id="bestRank">最佳排名为：<span class="result-scoreUnit2">NO.</span><span class="resuleArg"></span></p>

	                <div id="rank_showRule" style="text-decoration:underline;margin:0.7rem 0rem;" class="hide" onclick="showRule();">活动规则</div>

                        <div id="resule-status-count" style="margin-top:0.6rem">
	                        <p class="totalDraw">您还有 <span id="totalDrawCount" class="resuleArg"></span> 次抽奖机会</p>
	                        <p class="dayDraw">今天还有 <span class="resuleArg dayDrawCount"></span> 次机会抽奖</p>
	                        <p class="dayDraw4Total hide">今天可抽 <span class="resuleArg dayDrawCount"></span> 次</p>
	                    </div>

	                <div id="resule-status-playinfo" style="margin-top:0.6rem">
	                    <p class="dayPlayHint">今天还有 <span class="resuleArg todayPlayCount"></span> 次参与机会</p>
	                    <p class="totalPlayHint">您还有 <span class="resuleArg totalPlayCount"></span> 次参与机会</p>
	                    <p class="dayPlayHint4Total">今天可参与 <span class="resuleArg todayPlayCount"></span> 次</p>
	                </div>
	            </div>
	            <div id="resule-status-other" class="hide">
	                <p style="font-size:0.8rem;font-weight:bold;">通关并且</p>
	                <p class="resule-status-minscore hide" style="margin: 10px 0px 50px;">成绩必须达到 <span class="resuleArg resuleArg-fail resulescoreLimit"></span> <span class="gameScoreUnit">分</span>才能抽奖</p>
	            </div>
	            <div id="resule-sucReg" class="hide" style="margin-top:0.6rem">您已经成功报名参与活动！</div>
	            <div class="resule-foot-box">
	                <div class="resule-foot-one">
	                    <div class="resule-button resule-one-button resule-status-gift hide">赶紧去抽奖</div>
	                    <div class="resule-button resule-one-button resule-status-reg hide">我要报名</div>
	                    <div class="resule-button resule-one-button resule-status-again hide">再玩一次</div>
	                    <div class="resule-button resule-one-button resule-status-send hide">领取礼品</div>
	                    <div class="resule-button resule-one-button resule-status-rightNow hide">马上PK</div>
	                </div>
	                <div class="resule-foot-two">

	                    <div id="resule_seeRank_show" class="resule-button resule-status-seeRank">排行榜</div><div class="resule-button resule-status-home">返回首页</div><div class="resule-button resule-status-again restart-again ">再玩一次</div>

	                </div>
	            </div>
            </div>
	    <div class='attentionBox'>
		    <div id="drawMenuBtnBox" class='menuBtnBox hide' >
			    <a class='menuName'>关注我们</a>
		    </div>
		    <div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
		    <div class="holdBox"></div>
	    </div>
        </div>

        <div id="resule-status-lotsBox" style="display:none">
            <img id="resule-status-lots" class="editTarget-lotsPot">
            <div id="resule-status-lotsHand" class="editTarget-lotsShakeHand">
                <div class="shakeHand"></div>
                <div class="shakeTxt"></div>
                <div class="waitDrawBtn" style="display:none">点击抽奖</div>
            </div>
        </div>
    </div>
    <div id="resule-gift-box" style="display:none">
        <div id="resule-gift-scrollWrap" class="resule-gift-overflowScrolling" style="padding-top:1.2rem;position:relative;z-index:300;">


            <div class="resule-bgLight" ></div>


            <div id="luckContainer" style="position:absolute; width: 100%;z-index:250;">
                <p id="resule-gift-luck" style="text-align:center;" >恭喜你获得了</p>

                <div class="imgContentLimit hide" style="width: 14rem; height: 30rem; position: absolute;"></div>
	            <div class="imgContainer xydzp_GiftPos" style="position:relative;">
                    <img id="resule-gift-sucImg" class="slaveImg">


                </div>

                	<div id="resule-gift-foot">
	                    <p id="resule-gift-rank"> <span class="rank gifArg awardStyle"></span> </p>
	                    <p id="resule-gift-goods"> <span class="goods gifArg awardName"></span> </p>
	                </div>




                <div id="resule-gift-buttonMenu">

	                	<div class="giftBtnBox lookDetail orangeBtn">
	                    	<a class="seeAwardDetail buttonContent">查看奖品详情</a>
	                    </div>

                        <div class='resule-gift-draw repeatDraw greenBtn flowBtn hide' data-awarded='true'>继续抽奖</div>
                        <div class='resule-gift-home menuBack  greenBtn flowBtn'>返回首页</div>



                </div>

            </div>
        </div>

    <div id="faiImgBox">
        <div class="cannotGetThePriceBox"></div>



                    <img class="abs editTarget-theGetPricePic theUnPriceImg imgPreventDefault" id="theGetPricePic" />






                <div class='resule-gift-home menuBack'>返回首页</div>


    </div>

    <div id="resule-gift-buttonMenu-bottom">

        	<div class="giftBtnBox lookDetail orangeBtn">
                <a class="seeAwardDetail buttonContent">查看奖品详情</a>
            </div>

            <div class="bottom-line">
            <div class='resule-gift-draw repeatDraw greenBtn flowBtn hide' data-awarded='true'>继续抽奖</div>
            <div class='resule-gift-home menuBack  greenBtn flowBtn'>返回首页</div>
            </div>



    </div>

        <div class='attentionBox'>


        	<div class='menuBtnBox btnB' style='margin-bottom:4rem;'>

              <a class='menuName'>关注我们</a>
            </div>
            <div class='hdskillInfo skillInfo theRunningAdClass'><a class="theSpecialTarget" href='http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&#x26;mid=209854000&#x26;idx=1&#x26;sn=82241d924839270d3ea820ad2d56c01b#rd'>我也要创建元宵活动</a><span class='gotoFlag'><i></i></span></div>
            <div class="holdBox"></div>
        </div>
    </div>
</div>


<div id="attentionMask" class="homePoupMask">
    <div id="attentionPoup" class="homePoupInner attentionPoup">
        <canvas id="QRImg_canvas1" class="QRImg_canvas"></canvas>
        <img class="QRImg_exportImg" class="hide" src style="position: absolute; top: 0.5rem; z-index: 10; height: 16.5rem"/>
    </div>
</div>

<div id="awardCodeLayer" class="homePoupMask hide">
    <div id="awardCodeDetail" style="border-radius: 0.2rem;">
        <div class='codeLine' style="margin-top:0.4rem;">请联系核销员扫码核销</div>
        <img class="codeImg"/>
        <div class='codeLine' style="padding-top: 0.8rem;"><span class="code selectText"></span></div>
        <div class="codeOptInfo"></div>
    </div>
</div>
<div id="newAttentionMask" class="homePoupMask hide">
    <div id="newAttentionPoup" class="homePoupInner attentionPoup">
        <canvas id="QRImg_canvas2" class="QRImg_canvas"></canvas>
        <img class="QRImg_exportImg" class="hide" src style="position: absolute; top: 0.5rem; z-index: 10; height: 16.5rem"/>
    </div>
</div>
<div id="plAttentionMask" class="homePoupMask hide">
    <div id="plAttentionPoup" class="homePoupInner attentionPoup">
        <canvas id="QRImg_canvas3" class="QRImg_canvas"></canvas>
        <img class="QRImg_exportImg" class="hide" src style="position: absolute; top: 0.5rem; z-index: 10; height: 16.5rem"/>
    </div>
</div>

    <div id="skillSupMask" class="homePoupMask">
        <img src="//hdg.faisys.com/image/hdQRcode/20170821/caewmB_0.png?v=201711211453" style="position:absolute;top:2rem;z-index:10;margin:auto;left:0;right:0;width:11.65rem"/>
    </div>



<div id="loadingToast" class="hide">
    <div class="weui-mask_transparent"></div>
    <div class="weui-toast">
        <i class="weui-loading weui-icon_toast"></i>
        <p class="weui-toast__content"></p>
    </div>
</div>


<div id="myFissionPage" class="fissionPage">
    <div class="closeBtn"></div>
    <div class="fissionBg editTarget-fissionDetailBg">
        <div class="fissionProgress">
            <div class="txt_fsp">
                <div class="tit_txt">
                    <div class="notFinish">— 当前已增值 —</div>
                    <div class="hasFinish">恭喜完成了所有裂变挑战</div>
                </div>
                <div class="pgs_txt">
                    <div class="notFinish"><span class="curVal">0</span><span class="txt">元/<span class="maxVal"></span>元</span></div>
                    <div class="hasFinish">增值为<span class="txt"><span class="totalVal"></span>元</span>优惠券</div>
                </div>
            </div>
            <div class="cont_fsp"><div class="fill_fsp"></div></div>
            <div class="bot_fsp">
                <div class="notStart">还未开始裂变</div>
                <div class="start left">已裂变<span class="num"></span>次</div>
                <div class="start right">面值增加了<span class="curVal"></span>元</div>
            </div>
        </div>
        <div class="func_fsn">
            <div class="txt_fsn">
                <div class="inviteTxt_fsn">邀请够 <span class="times"></span> 人，此券可增值 <span class="maxVal"></span> 元</div>
                <div class="detail_fsn">获得一张可裂变的<span class="fsnName"></span>，立即与好友分享吧！<br/>邀请成功同时自己获得等额增值金额</div>
            </div>
            <div class="btnCont_fsn">
                <div class="invBtnFsn btn editTarget-fissionInviteBtn"></div>
                <div class="invBtnFsnTxt btn">点击右上角邀请好友</div>
                <div class="seeCurAwaFsn btn editTarget-fissionCheckBtn"></div>
            </div>
            <div class="friendList_fsn">
                <div class="title">
                    <span class="line"></span><span class="cir"></span><span class="txt">邀请好友</span><span class="cir"></span><span class="line"></span>
                </div>
                <div class="subTit">共有<span class="num"></span>名好友帮忙裂变</div>
                <div class="list"></div>
                <div class="weui-loadmore">
                    <div class="onLoad">
                        <i class="weui-loading"></i>
                        <span class="weui-loadmore__tips">加载中</span>
                    </div>
                    <div class="loadEnd">————<span class="txt">没有更多了</span>————</div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="shareFissionPage" class="fissionPage">
    <div class="closeBtn"></div>
    <div class="fissionBg editTarget-fissionShareBg">
        <div class="shareFissionTxt editTarget-fissionShareTxt"><span class="txt_tit"><span class="name">南笙</span>送给你一张</span></div>
        <div class="shareFissionName editTarget-fissionShareName">优惠券</div>
        <img class="shareFissionBtn editTarget-fissionShareBtn" />
    </div>
</div>

    </div>
<script type="text/javascript">
    function loadGamePreAssets(){
        hg.assets.add(["//hdg.faisys.com/image/bhmn/hint.png","https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg1IaF4wUo3uun1AYwczh4.png","https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg-ISF4wUogPCZlwIwczh4.png","https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg14aF4wUonM_OaTBzOHg.png","https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAgq4aF4wUo0oK47QIwczh4.png","http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAgqqrXwwUotLqh4AMwoAE4_gE.png"]);
    }
</script>

<script type="text/javascript">
    var _manage = false,
        tryPlay = false,
        m_debug = false,
        _resRoot = '//hdg.faisys.com',
        _ruleInfo = {},
        m_isPre = false,
        _preview = false,
        isPublish = true,
        isOldAwardPage = false,
        hg = {};

    //全局变量
    var g_config = {"settintCtWx":"","settintCtQq":"","settintCtPhone":"","showSkillSup":true,"showSlide":false,"isOpenAreaLimit":false,"isCheckPlayTimes":true,"showMenu":true,"buy":false,"isReg":false,"isNewGame":false,"isModel":false,"test":false,"isOem":false,"scoreType":false,"showLogo":true,"isShowNoAwardTips":false,"isopenVCode":false,"flag":80014,"flagB":67584,"countsTimeType":0,"sortType":0,"drawLimitDef":120,"scoreSet":200,"style":14,"aid":15981322,"gameId":6,"openId":"oosnVwtFox7jHfxzydnrM0SfQy9c","playerId":67,"userName":"文龙","headImg":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132","pToken":"0WNbID7mV3OldDZ9Qz4ld5N4AjY2gDM","authVer":0,"realVer":0,"jumpType":0,"hostLink":"http://","scoreUnit":"分","testCMD":"","ajaxUrl":"//15981322-6.hd.faisco.cn/ajax/","startTime":"2019-02-19 10:00","$startTime":1550541600000,"$endTime":1550574000000,"setGameTimeInterval":10,"isDoubleGame":false,"awardList":[{"optx":false,"attentionimg":"https://15981322.h40.faiusr.com/2/6/ACgIABACGAAgmf2E4wUo0MqkpQEwggI4ggI.jpg","aimgw":"6rem","pot":0,"amount":2,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TERM","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"钉钉联系范恬恬领奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":false,"cashinfo":"","cet":1550764799000,"btn":"关注我们","style":"一等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"宝玩双语阅读游戏宝盒一份","needlessconsume":false,"continfo":3,"attention":3,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1550505600000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":3,"oplink":false,"cashsite":"人力行政中心","level":1,"payment":1,"passwordrednum":100,"giftType":41,"jzCouponId":-1,"cardid":-1,"offset":0,"giftTypeItem":{"val":41,"name":"爱奇艺黄金会员（月卡）"}},{"optx":false,"attentionimg":"https://15981322.h40.faiusr.com/2/6/ACgIABACGAAgt4CF4wUopJSMqgMwggI4ggI.jpg","aimgw":"6rem","pot":0,"amount":3,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"钉钉联系范恬恬领奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"关注我们","style":"二等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"小兔丹尼水杯一个","needlessconsume":false,"continfo":3,"attention":3,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"人力行政中心","level":2,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0},{"optx":false,"attentionimg":"https://15981322.h40.faiusr.com/2/6/ACgIABACGAAgmYCF4wUorKWTpAQwggI4ggI.jpg","aimgw":"6rem","pot":0,"amount":6,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"钉钉联系范恬恬领奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":false,"cashinfo":"","cet":1550505599000,"btn":"关注我们","style":"三等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"丹尼兔一只","needlessconsume":false,"continfo":3,"attention":3,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"人力行政中心","level":3,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0},{"optx":false,"attentionimg":"","aimgw":"6rem","pot":0,"amount":0,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"了解更多","style":"四等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"价值5元小礼品","needlessconsume":false,"continfo":3,"attention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"请填写您的兑奖地址或者门店地址","level":4,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0,"wxcardid":""},{"optx":false,"attentionimg":"","aimgw":"6rem","pot":0,"amount":0,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"了解更多","style":"五等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"价值5元小礼品","needlessconsume":false,"continfo":3,"attention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"请填写您的兑奖地址或者门店地址","level":5,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0,"wxcardid":""},{"optx":false,"attentionimg":"","aimgw":"6rem","pot":0,"amount":0,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"了解更多","style":"六等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"价值5元小礼品","needlessconsume":false,"continfo":3,"attention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"请填写您的兑奖地址或者门店地址","level":6,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0,"wxcardid":""},{"optx":false,"attentionimg":"","aimgw":"6rem","pot":0,"amount":0,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"了解更多","style":"七等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"价值5元小礼品","needlessconsume":false,"continfo":3,"attention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"请填写您的兑奖地址或者门店地址","level":7,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0,"wxcardid":""},{"optx":false,"attentionimg":"","aimgw":"6rem","pot":0,"amount":0,"aimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"tlmt":"[8]","hbAverage":1000,"floatEnd":1500,"iscuscode":false,"aimgh":"6rem","t_type":"DATE_TYPE_FIX_TIME_RANGE","cfbt":0,"ocimg":false,"stl":"","oct":false,"opti":"凭券联系现场工作人员兑奖","onlinect":1,"iscancelver":false,"cashtype":2,"opqrc":true,"storeType":1,"hbtype":0,"servicepho":"","isOpenHostInfo":true,"cashinfo":"","cet":1550505599000,"btn":"了解更多","style":"八等奖","txn":"兑奖须知","btl":"","floatBegin":500,"name":"价值5元小礼品","needlessconsume":false,"continfo":3,"attention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"cbt":1549814400000,"txc":"联系商家出示兑奖码","genewxcard":false,"awardtype":2,"cft":30,"oplink":false,"cashsite":"请填写您的兑奖地址或者门店地址","level":8,"payment":1,"passwordrednum":100,"cardid":-1,"offset":0,"wxcardid":""}],"comfort":{"comoptx":false,"comattentionimg":"","comimgw":"6rem","pot":0,"amount":0,"comLimitNum":false,"comimg":"//hdg.faisys.com/image/gift.png?v=201601141500","excelName":"","jumptype":0,"ctlmt":"[8]","hbAverage":1000,"floatEnd":1500,"comiscuscode":false,"comimgh":"6rem","ccc":"","cttype":"DATE_TYPE_FIX_TIME_RANGE","comfbt":0,"replyDefine":[],"comoci":false,"comusedamount":0,"comstl":"","comoct":false,"comopti":"凭券联系现场工作人员兑奖","conlinect":1,"comcashtype":2,"comiscancelver":false,"comNum":0,"comStoreType":1,"comOpqrc":true,"cc":"","hbtype":0,"comservicephone":"","isOpenHostInfo":true,"comcashinfo":"","comcet":1550505599000,"combtn":"了解更多","cas":"安慰奖","comtxn":"兑奖须知","combtl":"","floatBegin":500,"ca":"价值5元小礼品","comNeedLessConsume":false,"comcontinfo":3,"comattention":1,"fissileCouponData":{"times":5,"name":"#val#优惠券","value":2000,"type":1,"maxValue":10000},"mainStyle":0,"comcbt":1549814400000,"comtxc":"联系商家出示兑奖码","comModNum":0,"genewxcard":false,"comAwardtype":2,"comft":30,"comOplink":false,"comcashsite":"请填写您的兑奖地址或者门店地址"},"bestRankInfo":{"rank":95,"score":"190"},"awardInfoB":"","openAwardLinkNoDraw":false,"userInfo":{"headImg":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132","ip":"223.104.3.142","ipProvince":"北京市","ipCity":"北京市"},"fisUserInfo":{},"awardUsername":"","awardPhone":"","awardAddress":"","addressNum":"","status":2,"afterWxCard":true,"haveAward":false,"showHelpGuide":false,"ipInfo":{},"contactNoDraw":"[{\"name\":\"姓名\",\"key\":\"ausername\",\"isOpen\":true},{\"name\":\"联系电话\",\"key\":\"aphone\",\"isOpen\":true},{\"name\":\"联系地址\",\"key\":\"aadress\",\"isOpen\":false}]","isAOpenId":1,"linkInfoType":1,"afterLinkModify":true,"shareDeep":1,"isFromZhuliShare":false,"qrCodeUrl":"https://12014383.h40.faiusr.com/2/ACgIABACGAAgxqit4wUojO-rvwQwkAM4kAM.jpg","isAngular":true,"_preview":false,"_minapp_findAct":false,"playerOrigin":4,"$$awardTypeInfo":{"def":{"collect":"收藏兑奖券","showcashtype":false,"showsitebox":true,"qrcode":false,"showcopy":true,"opti":"凭券联系现场工作人员兑奖","codename":"兑奖码","details":"兑奖券详情","deadline":"兑奖期限","showwxcard":true,"notice":"兑奖须知","cuscode":true,"cashsite":"请填写您的兑奖地址或者门店地址","sitetype":"text","site":"","term":true,"btn":"立即兑奖","isHdGift":false,"isJZcoupon":false,"isWxCash":true,"cashinfo":""},"0":{"collect":"收藏优惠券","opti":"到店后向店员出示","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","notice":"使用须知","sitetype":"text","cashsite":"请填写您的门店地址","site":"门店地址"},"1":{"collect":"收藏优惠券","opti":"购物时凭优惠码联系客服兑奖","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","notice":"使用须知","0":{"sitetype":"url","cashsite":"http://m.jd.com","site":"商城地址","btn":"进入商城"},"1":{"sitetype":"taopw","cashsite":"","site":"淘宝淘口令","btn":"复制淘口令"}},"2":{"showcashtype":true,"1":{"1":{"sitetype":"img"},"2":{"cashsite":"http://","sitetype":"url"}},"2":{"sitetype":"text"},"3":{"showsitebox":false,"sitetype":"img","opti":"复制券码发送到公众号","btn":"前往公众号兑奖"},"4":{"opti":"点击\u201C立即兑奖\u201D跳转到兑奖界面","cashsite":"http://","sitetype":"url","site":"网页链接"},"site":"兑奖地址"},"4":{"collect":"收藏兑奖券","opti":"到店后向店员出示","codename":"优惠码","details":"优惠券详情","deadline":"使用期限","qrcode":"auto","showwxcard":false,"notice":"使用须知","sitetype":"none","btn":"领取到微信卡包"},"5":{"collect":"收藏口令码","showsitebox":false,"codename":"口令码","deadline":"领取期限","showwxcard":false,"notice":"领取须知","cuscode":false,"term":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即领取\"进行兑奖","btn":"立即领取","showcopy":false}},"6":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即兑奖\"输入手机号码充值","btn":"立即兑奖","showcopy":false}},"7":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"立即兑奖\"输入手机号码充值","btn":"立即兑奖","showcopy":false}},"8":{"isHdGift":true,"collect":"收藏优惠券","term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"cashinfo":"卡密的有效使用期请以卡密页显示为准","0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"获取卡密\"获取激活码","btn":"获取卡密","showcopy":false}},"9":{"isJZcoupon":true,"term":false,"cuscode":false,"showsitebox":false},"10":{"showcashtype":true,"site":"兑奖地址","isCusCode":false,"isWxCash":false,"cuscode":false,"2":{"sitetype":"text"},"4":{"opti":"点击\u201C立即兑奖\u201D跳转到兑奖界面","cashsite":"http://","sitetype":"url","site":"网页链接"}},"11":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"cashinfo":"卡密的有效使用期请以卡密页显示为准","0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"获取卡密\"获取激活码","btn":"获取卡密","showcopy":false}},"12":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"cashinfo":"卡密的有效使用期请以卡密页显示为准","0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"获取卡密\"获取激活码","btn":"获取卡密","showcopy":false}},"13":{"isHdGift":true,"term":false,"cuscode":false,"showwxcard":false,"showsitebox":false,"cashinfo":"卡密的有效使用期请以卡密页显示为准","0":{"sitetype":"img","opti":"复制口令发送到公众号","btn":"前往公众号兑奖"},"1":{"sitetype":"wxUrl","opti":"点击下方\"获取卡密\"获取激活码","btn":"获取卡密","showcopy":false}}},"$$ptTotalPlayer":0,"$$isProduction":true,"areaLimitList":[],"linkInfoAll":true,"isForbidShareactivity":false,"drawType":1,"isOldZhuliGame":false,"createTime":1550485001000,"isYKY":false,"awardNum":3,"openComfort":false,"storeId":0,"areaId":0,"ykyWXOpenId":"","ykyRelationId":"","redPacketUrl":"https://hd.faisco.cn/15981322/6/jumptoRedPacket.html?gameAppid=wx50775cad5d08d7ad","sendGiftUrl":"https://hd.faisco.cn/15981322/6/gift_Exchange.html","sendVideoVipUrl":"https://hd.faisco.cn/15981322/6/videoVip_Exchange.html","ishasAttentiosThisAPP":false,"clickTips":{"clickSrc":"//hdg.faisys.com/image/clickView.png","pointW":"2rem","pointH":"2rem","clickW":"3.3rem","clickH":"3.65rem"},"acctOpenId":"","achieveToken":"","isOldFaiImgGame":false,"verInfo":{"freName":"免费版","byName":"白银版","bjName":"铂金版","zsName":"钻石版","freClass":"ver_free","byClass":"ver_by","bjClass":"ver_biz","zsClass":"ver_zs","verName":"免费版","verClass":"ver_free","ver":0,"createVer":0,"authVer":0,"realVer":0,"createAuthVer":0,"realCreateAuthVer":0,"maxAuthVer":0,"gameAmountLimit":500,"awardAmountLimit":2000,"canalAmountLimit":0,"map":{"0":{"class":"ver_free","name":"免费版"},"1":{"class":"ver_by","name":"白银版"},"2":{"class":"ver_biz","name":"铂金版"},"3":{"class":"ver_zs","name":"钻石版"}}},"initTime":30,"initTimeSign":"e530a08ba2cf8caf4720854e9d8a0e8a","urlToken":"cyqe9rI-N1I35xQRFUCppg","freeFirstPublish":false,"openAdvertising":false,"openAdvertisingLimitDisplay":true,"advertisingTime":3,"openAdvertisingForceWatch":false,"advertisingDisplayModel":1,"isCreateImageSharePattern":false,"_zhuliGameCreateImageShare":[],"isZhuliGame":false,"oemCloseSkillSupport":false,"fansOnly":false,"isServiceAccount":true,"isIdentify":false,"isVersion3":true,"HWRatio":1.608,"minBgH":25.728,"openAccessKeyOnce":false,"accesspopuptitle":"输入活动密钥后进入活动","hasWXAuth":false,"fromGuideShare":false,"$$sensitWordAndAdvance":[{"sensword":"游戏","adVance":"活动"},{"sensword":"红包","adVance":"hong包"},{"sensword":"紅包","adVance":"hong包"},{"sensword":"分享","adVance":"fen享"},{"sensword":"现金","adVance":"xian金"},{"sensword":"朋友圈","adVance":"peng友圈"},{"sensword":"福利","adVance":"fu利"}],"useSwiperBanner":true,"hasSwiperBanner":false};
    var HdVerDef = {
        FREE: 0,  //免费版
        BY: 1,  //白银版
        BJ: 2,  //铂金版
        ZS: 3,
        MD: 4,
    };


    document.body.className += ' version3';

</script>

<script type="text/javascript" src="//hdg.faisys.com/js/comm/jquery/jquery-core.min.js?v=201901241127"></script>

<script type="text/javascript" src="//hdg.faisys.com/js/hdUtil.min.js?v=201901241127"></script>
<script type="text/javascript" src="//hdg.faisys.com/js/hdgame.min.js?v=201902181823"></script>

<script type="text/javascript" src="//hdg.faisys.com/js/lufylegend_simplify.min.js?v=201901241127"></script>

<script type="text/javascript" src="//hdg.faisys.com/js/singlePageSet.min.js?v=201901241127"></script>
<script type="text/javascript">

    HdGame.gameDomain = 'hd.faisco.cn';

    function $$(selector){
        if(!_manage || _preview){
            return $('#__notfound__');
        }
        return parent.$(selector);
    }

    function parseRemToPx(rem){
        if(rem.indexOf('rem') === -1){
            return parseFloat(rem);
        }
        return parseFloat(rem)*g_rem;
    }

    function parsePxToRem(px){
        if(px.indexOf('px') === -1){
            return px;
        }
        return parseFloat(px)/g_rem + 'rem';
    }

    HdGame.Res.config({"js_city":"//hdg.faisys.com/js/comm/city2.min.js?v=201901241127","swiper_simple":"//hdg.faisys.com/js/swiper_simple.min.js?v=201901241127","js_clipboard":"//hdg.faisys.com/js/comm/clipboard.min.js?v=201901241127"});

HdGame.initJsHead(hg, {"loadingStyle":1,"maxIncrement":10,"isOpenAdvertise":false,"editPropList":[{"name":"playInfo","pos":{"left":"3.498666666666667rem","top":"16rem"},"css":[{"css":[{"opt":0,"val":14,"defVal":14},{"opt":0,"val":"#9d3723","defVal":"#9d3723","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":"","tra":-1,"defTra":-1}],"opt":0},{"css":[{"opt":0,"val":14,"defVal":14},{"opt":0,"val":"#ee9c0a","defVal":"#ee9c0a","tra":-1,"defTra":-1},{"opt":0,"val":"","defVal":"","tra":-1,"defTra":-1}],"opt":0}]},{"name":"theGetPricePic","pos":{"left":"2.0906666666666665rem","top":"1.28rem"},"size":{"width":"11.477333333333334rem","height":"11.178666666666667rem"},"path":[["//hdg.faisys.com/image/faiImg1-2.png"]]},{"name":"theGetPricePicTwo","pos":{"left":"2.0906666666666665rem","top":"1.28rem"},"size":{"width":"11.477333333333334rem","height":"11.178666666666667rem"},"path":[["//hdg.faisys.com/image/faiImg2-2.png"]]},{"name":"theGetPricePicThree","pos":{"left":"0rem","top":"0rem"},"size":{"width":"4rem","height":"4rem"},"path":[["//hdg.faisys.com/image/faiImg3-2.png"]]},{"name":"lotsPot","pos":{"left":"4.864rem","top":"2.986666666666667rem"},"size":{"width":"6.144rem","height":"12.373333333333333rem"},"path":[["//hdg.faisys.com/image/lots1.png"]]},{"name":"lotsShakeHand","pos":{"left":"4.48rem","top":"17.877333333333333rem"}},{"name":"advertising","path":[["https://hdg.faisys.com/image/gg.jpg"],["https://hdg.faisys.com/image/gg.jpg"],["https://hdg.faisys.com/image/gg.jpg"],["https://hdg.faisys.com/image/gg.jpg"]]},{"name":"slogan","pos":{"left":"0.128rem","top":"0.128rem"},"css":[{"opt":0,"val":12,"defVal":12},{"opt":0,"val":"#FFFFFF","defVal":"#FFFFFF","tra":1,"defTra":1},{"opt":0,"val":"#FFFFFF","defVal":"#FFFFFF","tra":0,"defTra":0}]},{"name":"fissionDetailBg","path":["https://hdg.faisys.com/image/fission/myFissionBg.jpg"],"css":[{"css":[{"opt":0,"val":"#fff","defVal":"#fff","tra":1,"defTra":1}],"opt":0}]},{"name":"fissionShareBg","path":["https://hdg.faisys.com/image/fission/shareFissionBg.jpg"]},{"name":"fissionInviteBtn","path":["https://hdg.faisys.com/image/fission/inviteBtn.png"]},{"name":"fissionCheckBtn","path":[["https://hdg.faisys.com/image/fission/seeAward_share.png"],["//hdg.faisys.com/image/fission/seeAward.png"]]},{"name":"fissionShareTxt","pos":{"left":"2.2613333333333334rem","top":"6.613333333333333rem"},"css":[{"css":[{"opt":0,"val":15,"defVal":15},{"opt":0,"val":"#8d2525","defVal":"#8d2525","tra":-1,"defTra":-1},{"opt":0,"val":"#fff","defVal":"#fff","tra":0,"defTra":0}],"opt":0}]},{"name":"fissionShareName","pos":{"left":"2.2613333333333334rem","top":"8.490666666666666rem"},"css":[{"css":[{"opt":0,"val":24,"defVal":24},{"opt":0,"val":"#ff4f48","defVal":"#ff4f48","tra":-1,"defTra":-1},{"opt":0,"val":"#fff","defVal":"#fff","tra":0,"defTra":0}],"opt":0}]},{"name":"fissionShareBtn","pos":{"left":"3.498666666666667rem","top":"10.24rem"},"size":{"width":"8.96rem","height":"2.7306666666666666rem"},"path":[["//hdg.faisys.com/image/fission/get.png"],["//hdg.faisys.com/image/fission/backIndex.png"]]}],"editPropListDef":[{"name":"playInfo","pos":{"left":"3.5rem","top":"16rem","forParent":"false"},"css":[{"title":"常规文字","opt":0,"from":"#playInfo","css":[{"type":"size","name":"font-size","val":14,"defVal":14,"opt":0},{"type":"color","name":"color","defVal":"#9d3723","val":"","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","tra":-1,"defTra":-1,"opt":0}]},{"title":"参与机会","opt":0,"from":"#playInfo .specil","css":[{"type":"size","name":"font-size","val":14,"defVal":14,"opt":0},{"type":"color","name":"color","val":"","defVal":"#ee9c0a","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"","defVal":"","tra":-1,"defTra":-1,"opt":0}]}],"edit":3,"formDefaultStyle":true},{"name":"theGetPricePic","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg1-2.png","图片01","5000k"]],"edit":"theGetPricePic","formDefaultStyle":true},{"name":"theGetPricePicTwo","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg2-2.png","图片01","5000k"]],"edit":"theGetPricePicTwo","formDefaultStyle":true},{"name":"theGetPricePicThree","pos":{"left":"2.1rem","top":"1.3rem"},"size":{"width":"11.5rem","height":"11.2rem"},"path":[["*_resRoot*/image/faiImg3-2.png","图片01","5000k"]],"edit":"theGetPricePicThree","formDefaultStyle":true},{"name":"lotsPot","pos":{"left":"4.925rem","top":"3rem"},"size":{"width":"6.15rem","height":"12.4rem"},"path":[["*_resRoot*/image/lots1.png","图片01","5000k"]],"edit":"lotsPot","formDefaultStyle":true},{"name":"lotsShakeHand","pos":{"left":"4.5rem","top":"17.9rem","forParent":"false"},"edit":"_none","formDefaultStyle":true},{"name":"advertising","targetName":"广告页设置","deferPath":true,"group":"home","rsize":{"width":"16rem","height":"40rem"},"path":[["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"],["*_resRoot*/image/gg.jpg","背景图片","5000k"]],"edit":"_background","formDefaultStyle":true},{"name":"slogan","pos":{"left":"0.17rem","top":"0.17rem","forParent":"false"},"css":[{"type":"size","name":"font-size","val":12,"defVal":12,"opt":0},{"type":"color","name":"color","val":"#FFFFFF","defVal":"#FFFFFF","tra":1,"defTra":1,"opt":0},{"type":"color","name":"text-shadow","val":"#FFFFFF","defVal":"#FFFFFF","tra":0,"defTra":0,"opt":0}],"edit":2,"formDefaultStyle":true},{"name":"fissionDetailBg","targetName":"编辑背景","group":"fission","rsize":{"width":"16rem","height":"40rem"},"path":["*_resRoot*/image/fission/myFissionBg.jpg","背景图片","5000k"],"cssEdit":1,"css":[{"title":"背景颜色","targetName":"背景颜色","opt":0,"css":[{"type":"color","name":"background-color","val":"#fff","defVal":"#fff","tra":1,"defTra":1,"opt":0}]}],"edit":"_backgroundAll","formDefaultStyle":true},{"name":"fissionShareBg","targetName":"编辑背景","group":"fission","rsize":{"width":"16rem","height":"40rem"},"path":["*_resRoot*/image/fission/shareFissionBg.jpg","背景图片","5000k"],"edit":"_background","formDefaultStyle":true},{"name":"fissionInviteBtn","group":"fission","rsize":{"width":"11.5rem","height":"2rem"},"path":["*_resRoot*/image/fission/inviteBtn.png","邀请按钮","5000k"],"edit":"fissionInviteBtn,fissionCheckBtn","formDefaultStyle":true},{"name":"fissionCheckBtn","group":"fission","rsize":{"width":"11.5rem","height":"2rem"},"path":[["*_resRoot*/image/fission/seeAward_share.png","查看按钮（裂变中）","5000k"],["*_resRoot*/image/fission/seeAward.png","查看按钮（裂变完成）","5000k"]],"edit":"fissionInviteBtn,fissionCheckBtn","formDefaultStyle":true},{"name":"fissionShareTxt","pos":{"left":"2.3rem","top":"6.65rem","forParent":"false"},"css":[{"title":"常规文字","opt":0,"from":".shareFissionTxt","css":[{"type":"size","name":"font-size","val":15,"defVal":15,"opt":0},{"type":"color","name":"color","val":"#8d2525","defVal":"#8d2525","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"#fff","defVal":"#fff","tra":0,"defTra":0,"opt":0}]}],"formDefaultStyle":true},{"name":"fissionShareName","pos":{"left":"2.3rem","top":"8.5rem","forParent":"false"},"css":[{"title":"常规文字","opt":0,"from":".shareFissionName","css":[{"type":"size","name":"font-size","val":24,"defVal":24,"opt":0},{"type":"color","name":"color","val":"#ff4f48","defVal":"#ff4f48","tra":-1,"defTra":-1,"opt":0},{"type":"color","name":"text-shadow","val":"#fff","defVal":"#fff","tra":0,"defTra":0,"opt":0}]}],"formDefaultStyle":true},{"name":"fissionShareBtn","group":"fission","size":{"width":"9rem","height":"2.75rem"},"pos":{"left":"3.5rem","top":"10.25rem"},"path":[["*_resRoot*/image/fission/get.png","领取按钮","5000k"],["*_resRoot*/image/fission/backIndex.png","返回首页","5000k"]],"edit":"fissionShareBtn","formDefaultStyle":true}],"editPropListIsMod":false,"advertisingNum":1,"gameImg":"//d1.faiusr.com/2/AAEIABACGAAgu8v10gUoxNaX7gQwwgM4_gE.jpg","openStrongAttention":false,"strongAttIMG":"","logoImg_path":"https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAgp46F4wUokPiV1QYwogM4sgM!100x100.png","startImg_path":"https://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg9sv10gUokP7_kwcwhAI4bg.png","gameBgPath":"http://7020498.h40.faiusr.com/2/164/ACgIABACGAAg3oLAxQUoz9fKxAEwgAU4wAw.jpg","homeBgPath":"http://7020498.h40.faiusr.com/2/164/ACgIABACGAAgvoLAxQUo7eGYxgMwgAU4wAw.jpg","titleImg_path":"https://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg8cv10gUo8Oq0xwYw9gQ4rAI.png","gameTimeNumDef":30,"soundList":[{"path":"//hdg.faisys.com/image/bhmn/bgmusic01.mp3","fileName":"背景音乐.mp3","optFlag":0},{"path":"//hdg.faisys.com/image/bhmn/bonus.mp3","fileName":"得分音效.mp3","optFlag":2}],"soundListDef":[{"path":"*_resRoot*/image/bhmn/bgmusic01.mp3","fileName":"背景音乐.mp3","optFlag":0},{"path":"*_resRoot*/image/bhmn/bonus.mp3","fileName":"得分音效.mp3","optFlag":2}],"openAccessKey":false})

</script>

<script type='text/javascript' src="//hdg.faisys.com/js/fission.min.js?v=201901241127"></script>


<script type="text/javascript">
HdGame.initWxConfig({"comfortAwardStyle":"","isHideShareBtn":false,"isHideMenuItems":false,"fullUrl":"https://15981322-6.hd.faisco.cn/15981322/cyqe9rI-N1I35xQRFUCppg/load.html?style=14","plInfo":{"id":67,"aid":15981322,"name":"文龙","awardLevel":0,"achievement":"190","gameId":6,"info":"{\"headImg\":\"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132\",\"ip\":\"223.104.3.142\",\"ipProvince\":\"北京市\",\"ipCity\":\"北京市\"}","award":"","openId":"oosnVwtFox7jHfxzydnrM0SfQy9c","flag":0,"openIdB":"","drawTotal":0,"rank":95,"codeList":"","jointime":1550544508222,"prop":"","prop1":"","code1":"","playInfo":"{\"pttotal\":5,\"pttoday\":5,\"playdate\":\"20190219\"}","currentAchievement":"0","faiOpenId":"oosnVwtFox7jHfxzydnrM0SfQy9c","firstJoinTime":1550542562005,"origin":4},"nameList":["一等奖","二等奖","三等奖","四等奖","五等奖","六等奖","七等奖","八等奖","安慰奖"],"jsSdkAppid":"wx50775cad5d08d7ad","timestamp":"1550544990","nonce_str":"cede05ff-2c1b-4df7-bf89-a2d8d4f19a84","signature":"dbf02f8d8339d0eaedc75797f3c3b2069bef2df8","cardTicket":"","dynamicShareUrlRootEmpty":false,"dynamicShareUrlRoot":"http://15981322-6.hd.faisco.cn/","fsl":"b","shareDeep":1,"checkControlLevel":0,"openStrongAttention":false,"shareImg":"https://15981322.h40.faiusr.com/2/6/ACgIABACGAAgjYSF4wUowJSE8gEw2AQ42QQ!160x160.jpg","activeName":"接文化汤圆赢宝玩大奖","wxShareText_def":"轻轻松松就能抽到大奖，积攒多年的人品终于有用了，你也赶紧来抽奖吧！！","wxShareText_award":"<span class=\"tag\" contenteditable=\"false\">玩家名称<\/span>已经在活动里赢得<span class=\"tag\" contenteditable=\"false\">奖品名称<\/span>，你也快来玩游戏赢大奖吧！","wxShareText_rank":"<span class=\"tag\" contenteditable=\"false\">玩家名称<\/span>以<span class=\"tag\" contenteditable=\"false\">游戏成绩<\/span>的成绩傲视群雄，你敢来挑战Ta赢取丰厚奖品吗？","addDrawTime":1})

</script>
<script type="text/javascript">
    var _gameOver = false;
    var GameArg = {
        createTime : 0.8,
        first : true,
    };

    window.requestAnimFrame = function() {
        return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame ||
        function(a) {
            window.setTimeout(a, 1e3 / 60, (new Date).getTime())
        }
    }();
    var Elements;
    (function(Elements) {
        function Gift(imgData,offsetX,offsetY,fps,speed) {
            this.imgData = imgData,
            this.offsetY = offsetY || 0;
            this.offsetX = offsetX || 0;
            this.speed = speed;
            this.walkFps = fps;
            this.frameInc = 0;
            this.walk();
        }
        Gift.prototype.walk = function(){
            this.status = 'walk';
            this.width = this.imgData.walk.spriteWidth;
            this.height = this.imgData.walk.spriteHeight;
        };
        Gift.prototype.drag = function(){
            this.status = 'drag';
            this.width = this.imgData.drag.spriteWidth;
            this.height = this.imgData.drag.spriteHeight;
        };
        Gift.prototype.stay = function(){
            this.status = 'stay';
            this.width = this.imgData.stay.spriteWidth;
            this.height = this.imgData.stay.spriteHeight;
        };
        Gift.prototype.render = function(ctx){
            var img;
            var statusData = this.imgData[this.status].file;
            switch(this.status){
                case 'walk':
                    this.frameInc += this.walkFps*GameArg.delta;
                    var frameInc = Math.floor(this.frameInc);
                    img = statusData[frameInc % statusData.length];
                    this.offsetX += this.speed*GameArg.delta;
                    break;
                case 'drag':
                case 'stay':
                    img = statusData;
                    break;
            }
            ctx.drawImage(img,GameArg.canvas.width - this.offsetX,this.offsetY,this.width,this.height);
        };
        Elements.Gift = Gift;
    })(Elements || (Elements = {}));
    (function(Elements) {
        function Man(imgData,offsetX,offsetY,speed) {
            this.imgData = imgData,
            this.offsetY = offsetY || 0;
            this.offsetX = offsetX || 0;
            this.speed = speed;
            this.width = this.imgData.man.spriteWidth;
            this.height = this.imgData.man.spriteHeight;
        }
        Man.prototype.render = function(ctx){
            var img = this.imgData.man.file;
            this.offsetX += this.speed*GameArg.delta;
            ctx.drawImage(img,GameArg.canvas.width - this.offsetX,this.offsetY,this.width,this.height);
        };
        Elements.Man = Man;
    })(Elements || (Elements = {}));

    function initTapEvent(){
        GameArg.canvas.addEventListener("touchstart", function(event) {
            event.preventDefault();
            event.stopPropagation();
            if(_gameOver || GameArg.dragGirl){
                return;
            }
            var pageX = GameArg.canvas.width - (event.changedTouches[0].pageX - GameArg.canvasX)*GameArg.ratio;
            var pageY = (event.changedTouches[0].pageY - GameArg.canvasY)*GameArg.ratio;
            for (var f = GameArg.walkList.length-1;f >= 0; f--){
                var girl = GameArg.walkList[f];
                if(pageX < girl.offsetX && pageX > girl.offsetX - girl.width && pageY > girl.offsetY && pageY < girl.offsetY + girl.height){
                    GameArg.walkList.splice(f,1);
                    GameArg.dragGirl = girl;
                    GameArg.dragGirl.lastPageX = pageX;
                    GameArg.dragGirl.lastPageY = pageY;
                    girl.drag();
                    return;
                }
            }
        },false);
        GameArg.canvas.addEventListener("touchmove",function(event) {
            event.preventDefault();
            event.stopPropagation();
            if(_gameOver || !GameArg.dragGirl){
                return;
            }
            var pageX = GameArg.canvas.width - (event.changedTouches[0].pageX - GameArg.canvasX)*GameArg.ratio;
            var pageY = (event.changedTouches[0].pageY - GameArg.canvasY)*GameArg.ratio;
            var x = GameArg.dragGirl.offsetX + (pageX - GameArg.dragGirl.lastPageX);
            var y = GameArg.dragGirl.offsetY + (pageY - GameArg.dragGirl.lastPageY);
            if(x > 0 && x < GameArg.canvas.width){
                GameArg.dragGirl.offsetX = x;
            }
            if(y > 0 && y + GameArg.dragGirl.height < GameArg.canvas.height){
                GameArg.dragGirl.offsetY = y;
            }
            GameArg.dragGirl.lastPageX = pageX;
            GameArg.dragGirl.lastPageY = pageY;
        },false);
        GameArg.canvas.addEventListener("touchend", function(event) {
            event.preventDefault();
            event.stopPropagation();
            if(_gameOver || !GameArg.dragGirl){
                return;
            }
            if(GameArg.dragGirl.offsetY + GameArg.dragGirl.height < GameArg.successY){
                GameArg.dragGirl.walk();
                addGirl(GameArg.walkList,GameArg.dragGirl);
            }else{
                if(GameArg.dragGirl.offsetY < GameArg.canvas.height - GameArg.stayCanvas.height){
                    GameArg.dragGirl.offsetY = GameArg.canvas.height - GameArg.stayCanvas.height;
                }
                GameArg.dragGirl.stay();
                GameArg.scoreList.push(new Elements.Score(GameArg.dragGirl.offsetX - GameArg.dragGirl.width/2 + GameArg.scoreCanvas.width/2,GameArg.dragGirl.offsetY - GameArg.scoreCanvas.height));
                GameArg.dragGirl.offsetY -= (GameArg.canvas.height - GameArg.stayCanvas.height);
                GameArg.dragGirl.render(GameArg.stayCtx);
                hg.sound.play(1);
                hg.grade(10);
            }
            GameArg.dragGirl = null;
        },false);
    }
    function parseRatio(rem){
        return parseRemToPx(rem)*GameArg.ratio;
    }
    function resizeCanvas() {
        GameArg.canvas = document.getElementById("canvas"),
        GameArg.ctx = GameArg.canvas.getContext("2d");
        var $gameLayerBox = $("#gameLayerBox");
        GameArg.canvasX = $gameLayerBox.offset().left;
        GameArg.canvasY = $gameLayerBox.offset().top;
        var backingStore = GameArg.ctx.backingStorePixelRatio ||
                        GameArg.ctx.webkitBackingStorePixelRatio ||
                        GameArg.ctx.mozBackingStorePixelRatio ||
                        GameArg.ctx.msBackingStorePixelRatio ||
                        GameArg.ctx.oBackingStorePixelRatio ||
                        GameArg.ctx.backingStorePixelRatio || 1;
        GameArg.ratio = (window.devicePixelRatio || 1) / backingStore;
        //GameArg.ratio = 1;
        var width = $gameLayerBox.innerWidth();
        var height = $gameLayerBox.innerHeight();
        GameArg.canvas.width = width*GameArg.ratio;
        GameArg.canvas.height = height*GameArg.ratio;
        GameArg.canvas.style.width = width + 'px';
        GameArg.canvas.style.height = height + 'px';
        GameArg.faiX = GameArg.canvas.width ;//- parseRatio('3.584rem')*0.8;
        GameArg.maxH = Math.max(parseRatio('2.7306666666666666rem'),parseRatio('2.7306666666666666rem'),parseRatio('2.7306666666666666rem'),parseRatio('5.12rem'));
        GameArg.stayCanvas = $('<canvas width='+GameArg.canvas.width+' height='+($('#stayPlace').height()*GameArg.ratio + parseRatio('2.7306666666666666rem')/3)+' ></canvas>')[0];
        GameArg.stayCtx = GameArg.stayCanvas.getContext("2d");

        var scoreCanvasW = 2*g_rem*GameArg.ratio;
        var scoreCanvasH = 1*g_rem*GameArg.ratio;
        GameArg.scoreCanvas = $('<canvas width='+scoreCanvasW+' height='+scoreCanvasH+' ></canvas>')[0];
        GameArg.scoreCtx = GameArg.scoreCanvas.getContext("2d");
        GameArg.scoreCtx.font = "bold " + GameArg.ratio*g_rem + "px Arial";
        GameArg.scoreCtx.textAlign = "center";
        GameArg.scoreCtx.baseBaseLine = "middle";
        GameArg.scoreCtx.fillStyle = "#f30";
        GameArg.scoreCtx.fillText("+10",scoreCanvasW/2,scoreCanvasH);

        (function(Elements) {
            function Score(offsetX,offsetY,speed) {
                this.offsetY = offsetY || 0;
                this.offsetX = offsetX || 0;
                this.speed = speed || 1.2*g_rem/1000;
                this.y = 0;
            }
            Score.prototype.width = GameArg.scoreCanvas.width;
            Score.prototype.height = GameArg.scoreCanvas.height;
            Score.prototype.render = function(ctx){
                this.offsetY -= this.speed*GameArg.delta;
                this.y += this.speed*GameArg.delta;
                ctx.drawImage(GameArg.scoreCanvas,GameArg.canvas.width - this.offsetX,this.offsetY,this.width,this.height);
            };
            Elements.Score = Score;
        })(Elements || (Elements = {}));

        GameArg.assetLib = {
            girl:{
                walk :{
                    file : [hg.assets['https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg1IaF4wUo3uun1AYwczh4.png'],hg.assets['https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg-ISF4wUogPCZlwIwczh4.png']],
                    spriteWidth: parseRatio('2.6026666666666665rem'),
                    spriteHeight: parseRatio('2.7306666666666666rem')
                },
                drag :{
                    file : hg.assets['https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAg14aF4wUonM_OaTBzOHg.png'],
                    spriteWidth: parseRatio('2.6026666666666665rem'),
                    spriteHeight: parseRatio('2.7306666666666666rem')
                },
                stay :{
                    file : hg.assets['https://15981322.h40.faiusr.com/4/6/ACgIABAEGAAgq4aF4wUo0oK47QIwczh4.png'],
                    spriteWidth: parseRatio('2.6026666666666665rem'),
                    spriteHeight: parseRatio('2.7306666666666666rem')
                }
            },
            man:{
                man :{
                    file : hg.assets['http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAgqqrXwwUotLqh4AMwoAE4_gE.png'],
                    spriteWidth: parseRatio('3.584rem'),
                    spriteHeight: parseRatio('5.12rem')
                }
            }
        };
        GameArg.canvasTop = 4*g_rem*GameArg.ratio;
        GameArg.successY = GameArg.canvas.height - $('#stayPlace').height()*GameArg.ratio;
        GameArg.first = false;
        initTapEvent();
        LF.setTopBarNotLF(GameArg.canvas,GameArg.ratio);
        startGame();
    }
    function startGame(){
        GameArg.createTime = 0.8,
        GameArg.speedRatio = 1,
        _gameOver = false,
        GameArg.walkList = [],
        GameArg.stayList = [],
        GameArg.scoreList = [],
        GameArg.dragGirl = null,
        GameArg.manList = [],
        GameArg.faiGirl = null,
        GameArg._endGame = false,
        GameArg.currentTime = 0;
        GameArg.delta = 0;
        GameArg.ctx.clearRect(0,0,GameArg.canvas.width,GameArg.canvas.height);
        GameArg.stayCtx.clearRect(0,0,GameArg.stayCanvas.width,GameArg.stayCanvas.height);
        addGirl(GameArg.walkList,new Elements.Gift(GameArg.assetLib.girl,parseRatio('2.6026666666666665rem') + 1*g_rem,GameArg.canvasTop + 4.4*g_rem,0,0));
        updateGame();
        if(!HdGame.isplaySucess){
            $('#hint').show();
        }else{
            var speed = GameArg.canvas.width/4000;
            GameArg.walkList[0].speed = speed;
            GameArg.walkList[0].walkFps = 3*speed/parseRatio('2.6026666666666665rem');
            gamePlay();
            hg.time.start();
        }

    }
    function gamePlay(){
        if(_gameOver){
            return;
        }
        var g = GameArg;
        if((isIPhone4()) && g.walkList.length >= 7){
            setTimeout(arguments.callee,1000);
        }else if(isAndroid() && g.walkList.length >= 12){
            setTimeout(arguments.callee,1000);
        }else if(g.walkList.length >= 14){
            setTimeout(arguments.callee,1000);
        }else{
            var create_time = GetRandom(g.createTime/2,g.createTime) * 1000;
            var offsetY = GetRandomNum(g.canvasTop+g.maxH-parseRatio('2.7306666666666666rem'),g.successY-parseRatio('2.7306666666666666rem'));
            var speed = GetRandom(g.canvas.width/1500,g.canvas.width/3000);
            speed = speed*g.speedRatio;
            addGirl(g.walkList,new Elements.Gift(g.assetLib.girl,0,offsetY,3*speed/parseRatio('2.6026666666666665rem'),speed));
            g.gamePlayTimer = setTimeout(arguments.callee,create_time);
        }
    }
    function updateGame(){
        if(GameArg._endGame){
            return;
        }
        var currentTime = (new Date).getTime();
        GameArg.delta = currentTime - GameArg.currentTime;
        GameArg.currentTime = currentTime;
        GameArg.delta > 500 && (GameArg.delta = 0);
        GameArg.ctx.clearRect(0,0,GameArg.canvas.width,GameArg.canvas.height);
        for(var i = 0;i < GameArg.walkList.length;i++){
            if(GameArg.walkList[i].offsetX > GameArg.faiX){
                addGirl(GameArg.manList,new Elements.Man(GameArg.assetLib.man,GameArg.canvas.width,GameArg.walkList[i].offsetY - (parseRatio('5.12rem') - parseRatio('2.7306666666666666rem')),GameArg.canvas.width/2000));
                GameArg.walkList.splice(i,1);
                if(!GameArg.walkList[i]){
                    continue;
                }
            }
            GameArg.walkList[i].render(GameArg.ctx);
        }
        GameArg.ctx.drawImage(GameArg.stayCanvas,0,GameArg.canvas.height - GameArg.stayCanvas.height,GameArg.stayCanvas.width,GameArg.stayCanvas.height);
        for(var i = 0;i < GameArg.scoreList.length;i++){
            if(GameArg.scoreList[i].y > 1.2*g_rem){
                GameArg.scoreList.splice(i,1);
                if(!GameArg.scoreList[i]){
                    continue;
                }
            }
            GameArg.scoreList[i].render(GameArg.ctx);
        }
        GameArg.dragGirl && (GameArg.dragGirl.render(GameArg.ctx));
        for(var i = 0;i < GameArg.manList.length;i++){
            if(GameArg.manList[i].offsetX > GameArg.canvas.width + GameArg.manList[i].width){
                GameArg.manList.splice(i,1);
                if(!GameArg.manList[i]){
                    continue;
                }
            }
            GameArg.manList[i].render(GameArg.ctx);
        }
        hg.time.updateInFrame(GameArg.delta);
        LF.showTopBar();
        requestAnimFrame(updateGame);
    }
    function addGirl(list,girl){
        var length = list.length;
        if(length === 0){
            list.push(girl);
            return;
        }
        for(var i = 0;i < length;i++){
            if(girl.offsetY <= list[i].offsetY){
                list.splice(i,0,girl);
                return;
            }
        }
        list.push(girl);
    }
    function isIPhone6(){
        return window.navigator.userAgent.indexOf('iPhone') !== -1&&(window.screen.availWidth === 375 || window.screen.availWidth === 414);
    }
    function isIPhone4(){
        return window.navigator.userAgent.indexOf('iPhone') !== -1&&(window.screen.availHeight === 460);
    }
    function isAndroid(){
        return window.navigator.userAgent.indexOf('Android') !== -1;
    }
    function GetRandom(a,b){
        return a+Math.random()*(b-a);
    }
    function GetRandomNum(a,b){
        return a+Math.floor(Math.random()*(b-a+1));
    }

    $(function(){
        gameInit();
        var theSrc = "http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAg8ILAxQUo-oLTlgYwgAU45gE.png";
        HdGame.imgReady(theSrc,function(){
            var originSize = {width:$("#stayPlaceImg").outerWidth(),height:$("#stayPlaceImg").outerHeight()};
            var nowSize = HdGame.Img.calcSize(this.width,this.height,originSize.width,originSize.height,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
            $("#stayPlaceImg").css({
                'background-image':'url("'+theSrc+'")',
                "background-position":"center center",
                "background-repeat":"no-repeat",
                "background-size":nowSize.width+"px "+nowSize.height+"px"
            })
        })
        if(_manage){
            gamePicLayer();
            HdGame.moduleSlaveImgResize($('#leftImg'),{width:'3.5rem',height:'5.5rem',left:'12.3rem',top:'3.5rem'});
            HdGame.moduleSlaveImgResize($('#dragImg'),{width:'3.5rem',height:'5.5rem',left:'4rem',top:'8rem'});
            HdGame.moduleSlaveImgResize($('#stayImg'),{width:'3.5rem',height:'5.5rem',left:'10rem',top:'13.5rem'});
            HdGame.moduleSlaveImgResize($('#manImg'),{width:'5.3rem',height:'7.5rem',left:'0rem',top:'1.5rem'});
        }else{
            $('#hint').on('touchstart',function(){
                $(this).hide();
                var speed = GameArg.canvas.width/4000;
                GameArg.walkList[0].speed = speed;
                GameArg.walkList[0].walkFps = 3*speed/parseRatio('2.6026666666666665rem');
                gamePlay();
                hg.time.start();
            });
            hg.on('startGame',function(){
                if(GameArg.first){
                    resizeCanvas();
                }else{
                    startGame();
                }
            });
            hg.time.setAcceList(4);
            hg.time.updateFlag = false;
            hg.time.on('acce',function(index){
                GameArg.createTime = GameArg.createTime*0.8;
                GameArg.speedRatio = 1 + 0.5*index;
            }).on('end',function(){
                _gameOver = true;
                GameArg._endGame = true;
                setTimeout(function(){
                    gameOver(hg.grade.val);
                },1000);
            });
            $('#gameLayerBox').css('top',0);
        }
        $('.gameBox').on('touchmove',function(event){
            event.preventDefault();
            event.stopPropagation();
        });
    });

    function gamePicLayer(){
        var giftImgArgs = [];
        var leftImgArg = {};
        leftImgArg.from = "#leftImg";
        leftImgArg.title = '行走图片01';
        leftImgArg.limit = '5000k';
        leftImgArg.defSrc = '//hdg.faisys.com/image/bhmn/left.png?v=201509051300';
        giftImgArgs.push(leftImgArg);
        var rightImgArg = {};
        rightImgArg.from = "#rightImg";
        rightImgArg.title = '行走图片02';
        rightImgArg.limit = '5000k';
        rightImgArg.defSrc = '//hdg.faisys.com/image/bhmn/right.png?v=201509051300';
        giftImgArgs.push(rightImgArg);
        var dragImgArg = {};
        dragImgArg.from = "#dragImg";
        dragImgArg.title = '被拖图片';
        dragImgArg.limit = '5000k';
        dragImgArg.defSrc = '//hdg.faisys.com/image/bhmn/drag.png?v=201509051300';
        giftImgArgs.push(dragImgArg);
        var stayImgArg = {};
        stayImgArg.from = "#stayImg";
        stayImgArg.title = '停留图片';
        stayImgArg.limit = '5000k';
        stayImgArg.src = $('#stayImg').attr('src');
        stayImgArg.defSrc = '//hdg.faisys.com/image/bhmn/stay.png?v=201509051300';
        giftImgArgs.push(stayImgArg);
        var manImgArg = {};
        manImgArg.from = "#manImg";
        manImgArg.title = '被抓图片';
        manImgArg.limit = '5000k';
        manImgArg.defSrc = '//hdg.faisys.com/image/bhmn/man.png?v=201509081600';
        giftImgArgs.push(manImgArg);

        var stayPlaceArgs = [];
        var stayPlaceArg = {};
        stayPlaceArg.from = "#stayPlaceImg";
        stayPlaceArg.title = '停留地图片';
        stayPlaceArg.limit = '5000k';
        stayPlaceArg.defSrc = '//hdg.faisys.com/image/bhmn/stayPlace.png?v=201509051300';
        stayPlaceArgs.push(stayPlaceArg);

        HdGame.initModuleLayer('#stayPlaceImg',-1,"",stayPlaceArgs);
        HdGame.initModuleLayer('#leftImg',-1,"",giftImgArgs);
        HdGame.initModuleLayer('#dragImg',-1,"",giftImgArgs);
        HdGame.initModuleLayer('#stayImg',-1,"",giftImgArgs);
        HdGame.initModuleLayer('#manImg',-1,"",giftImgArgs);
    }

    function gameInit() {
        hg.time.init();
        hg.grade.set(0);
        $('.timeUpImg').hide();
    }
    function home(){
        $('#ruleImg').show();
        $('.homeBtnBox').show();
        $('.footerBox').show();
        $('.gameBox').hide();
        startBtnDelay();
        $('.home').show();
        $('#poupInfoBox').hide();
        $('.resuleBox').hide();
        gameInit();
        hg.fire('home');
    }
    function gameRestart() {
        $('.gameBox').show();
        gameInit();
        if(!_manage){
            startGame();
        }
        hg.fire('again');
    }
    function showGamePage(){
        $('#ruleImg').hide();
        $('.homeBtnBox').hide();
        $('.footerBox').hide();
        $('.home').hide();
        $('#poupInfoBox').hide();
        $('.resuleBox').hide();
        $('.gameBox').show();
    }
</script>

<script type="text/javascript">
	//log下ajax的流水号
	$(document).ajaxComplete(function(event, jqXHR, options){
		var ajaxInfo = {
			flow: jqXHR.getResponseHeader('FAI-W-FLOW'),
			url: options.url
		};
		HdGame.tlog('ajax', ajaxInfo);
	});
	HdGame.tlog((g_config.isAOpenId == 0 ? 'A' : 'B') + '类openId');
	var count = 0;
	var drawTimesLimit = 6;
	var drawTotalLimit = 3;
	var drawTimesLimitShow = 6;
	var drawTotalLimitShow = 3;
	var playTimesLimit = 5;
	var playTotalLimit = 10;
	var totalCount = 0;
	var isLimitDraw = false;
	var isLimitPlay = false;
	var showAwardList = false;
	var informNum = 0;
	var playerAwardList = [];
	var skillSupportType = 2;
	var skillName = HdGame.decodeHtml('凡科互动');
	var skillLink = HdGame.decodeUrl(HdGame.decodeHtml('http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMjM5MTk5MjI3OA%3D%3D%26mid%3D209854000%26idx%3D1%26sn%3D82241d924839270d3ea820ad2d56c01b%23wechat_redirect'));
	var gameType = 0;
	var rankShowNum = 100;
	var helpType = 1;
	var addDrawTime = 1;
	var remainHelpNum = 10;
	var gameTimeType = 1;
	PlayInfo.initData(5, 5, 5, 5, 10, false);

	var drawStatusLuckDraw = true;
	function luckDraw(fn, options){

			if(!drawStatusLuckDraw){
				return;
			}

			var self = this;
			var args = arguments;

			function checkAreaLimit(){
				HdGame.tlog('checkAreaLimit');
				if(g_config.isOpenAreaLimit){
					return HdGame.checkAreaLimitByWx(g_config.ipInfo, g_config.areaLimitList);
				}

				return $.Deferred('resolve');
			}
			function checkAccessKeyOnce(){
				HdGame.tlog('checkAccessKeyOnce');


				return $.Deferred('resolve');
			}
			function beforeDraw(){
				HdGame.tlog('beforeDraw');
				if(hg.fireWith('beforeDraw', self, [args]) === false){
					return $.Deferred('reject');
				}

				return $.Deferred('resolve');
			}
			function getResult(){
				HdGame.tlog('getResult');
				var params = {
					gameId: 6,
					style: 14,
					userName: g_config.userName,
					isPub: $.trim(''),
					headImg: g_config.headImg,
					ip: '223.104.3.142',
					city_gps: typeof g_config.ipInfo.city != 'undefined' ? g_config.ipInfo.city : '',
					provice_gps: typeof g_config.ipInfo.provice != 'undefined' ? g_config.ipInfo.provice : '',
				};



				var url = HdGame.jointUrlArg("//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp", HdGame.jointParams({
					cmd: "getResult",
					aid: "15981322",
					openId: "oosnVwtFox7jHfxzydnrM0SfQy9c",
					achieveToken: g_config.achieveToken,
					playerOrigin: g_config.playerOrigin
				}));

				$.extend(params, options);

				return $.ajax({
					type: 'POST',
					url: url,
					data: params,
					dataType: 'json'
				});
			}
			function complete(result){
				HdGame.tlog('complete');
				HdGame.hideLoadToast();
				HdGame.otherAjaxComplete();
				drawStatusLuckDraw = true;
				clearTimeout(HdGame.lotTimer);
				hg.fireWith('afterDraw', self, [result]);
			}
			function handleResult(result){
				HdGame.tlog('luckDraw: ', result);
				complete(result);

				if(result.success){
					$('#resule-gift-box').attr('_level', result.awardIndex);
					g_config.haveAward = true;
					$('.resule-status-send').html('查看我的奖品');
				}else if(result.rt === 60 || result.rt === 28){
					$('.resule-status-box').hide();
				}else if(result.rt === 3){
					$('.resule-status-box').show();
				}else{
					if(result.rt === 27 && result.op === 'getGameResult'){
						$('.resuleBox').hide();
						HdGame.showLotsWait(5, function(){
							$('.resuleBox').show();
							luckDraw(fn, options);
						});
					}else if(result.rt === 1){
						count = drawTimesLimit;
						var msgText = 4;
						$(".dayDrawCount").text(0);
						HdGame.statusMsg(msgText);
						if(!g_config.showHelpGuide){
							$('#resule-gift-box').hide();
						}
						home('luckDraw');
					}else if(result.rt === 13){
						HdGame.statusMsg(6);
						count = drawTimesLimit;
						totalCount = drawTotalLimit;
						$('.dayDrawCount').text(0);
						$('.totalDrawCount').text(0);
						$('#resule-gift-box').hide();
						home('luckDraw');
					}else if(result.rt === -3 || result.rt === 23 || result.rt === 46){
						HdGame.statusMsg(result.msg || '系统繁忙，请稍后重试！');
					}else{
						HdGame.showMsg(result.msg || '系统繁忙，请稍后重试！', 0, '关闭', function(){
							if(g_config.style == 66){
								window.location.href = HdGame.removeUrlArg(document.URL, 'state', 'code');
							}
						}, true);
						home('luckDraw');
					}
					return;
				}

				if(gameType != 4){
					console.log(gameType);
					count++;
					$('.dayDrawCount').text(drawTimesLimit-count < 0 ? 0 : (drawTimesLimit - count));
					totalCount++;

					$('.totalDrawCount').text(drawTotalLimit - totalCount < 0 ? 0 : (drawTotalLimit - totalCount));
					if( (drawTimesLimit - count <= 0 || drawTotalLimit-totalCount <= 0) && ( (helpType == 2 && g_config.showHelpGuide) || (helpType == 3 && remainHelpNum != 0) ) ){
						if(!isLimitDraw){
							$('.totalDraw').hide();
							$('.dayDraw').text('点击获取抽奖机会>>');
							$('.dayDraw').on('click', getMoreTimes);
						}else{
							$('.totalDraw').text('点击获取抽奖机会>>');
							$('.totalDraw').on('click', getMoreTimes);
							$('.dayDraw').hide();
							if( (drawTimesLimit - count) < (drawTotalLimit - totalCount) ){
									$('.dayDraw4Total').text('今天抽奖机会已用完，点击获取更多抽奖机会>>');
									$('.dayDraw4Total').on('click', getMoreTimes);
									$('.dayDraw4Total').css('width', '16rem');
									$('.totalDraw').off('click')
									if($('.dayDraw4Total').parent().attr('id') == 'drawInfo'){
										$('.dayDraw4Total').css('margin-left', '-2.5rem');
									}
									var num = drawTotalLimit - totalCount < 0 ? 0 : (drawTotalLimit - totalCount);
									$('.totalDraw').html('总抽奖机会剩 <span class="totalDrawCount specil">' + num + '</span> 次');
							}
						}
					}else{
						$('.dayDraw').off('click');
						$('.totalDraw').off('click');
						$('.dayDraw4Total').off('click');
					}
				}

				var arg = {
					isSuc: result.success,
					giftStyle: result.awardStyle,
					giftName: result.awardName,
					giftCode: result.awardCode,
					awardTypeNum: result.awardTypeNum,
					giftImage: result.awardImage,
					awardImageW: result.awardImageW,
					awardImageH: result.awardImageH,
					awardIndex: result.awardIndex,
					isOutAwardNum: result.rt === 3,
				};
				if(HdGame.getType(fn) === 'function'){
					fn(arg, result);
				}else{
					HdGame.resulePoup.showGift(arg);
				}
			}
			function handleFail(){
				hg.fire('luckDrawErr');
				complete({
					success: false,
					rt: -999,
					msg: '系统繁忙，请稍后重试！',
				});
			}

			HdGame.showLoadToast('数据加载中');
			drawStatusLuckDraw = false;
			$('.ajaxLoadBg').show();
			$('.ajaxLoadBar').addClass('ajaxLoad');

			$.Deferred('resolve')
				.then(checkAreaLimit)
				.then(checkAccessKeyOnce)
				.then(beforeDraw)
				.then(getResult)
				.then(handleResult)
				.fail(handleFail);

	}
	function luckDrawZhuliNew(fn,option){
		if(!drawStatusLuckDraw || _manage){
			return;
		}
		HdGame.showLoadToast('数据加载中');
		drawStatusLuckDraw = false;
		$('.ajaxLoadBg').show();
		$('.ajaxLoadBar').addClass('ajaxLoad');
		var params = {
			gameId: 6,
			zlid: g_config.style == 61 ? zlid : -1,
			city_gps: typeof g_config.ipInfo.city != 'undefined' ? g_config.ipInfo.city : '',
			province_gps: typeof g_config.ipInfo.provice != 'undefined' ? g_config.ipInfo.provice : ''
		};
		$.extend(params,option);
		$.ajax({
			type : 'post',
			url : '//15981322-6.hd.faisco.cn/ajax/hdzhuli_h.jsp?cmd=getResult&aid=15981322&openId=oosnVwtFox7jHfxzydnrM0SfQy9c',
			data : params,
			error : function(err,errObj){
				if(m_debug){
					alert( '服务繁忙，请稍候重试' );
				}
				HdGame.hideLoadToast();
				HdGame.otherAjaxComplete();
				drawStatusLuckDraw = true;
				hg.fire("luckDrawErr");
			},
			success : function(data){
				HdGame.hideLoadToast();
				HdGame.tlog('luckDrawZhuliNew',data);
				HdGame.otherAjaxComplete();
				drawStatusLuckDraw = true;
				var result = $.parseJSON(data);
				setNoLiheWxShare && setNoLiheWxShare();
				if(result.success){
					g_config.haveAward = true;
				}else if(result.rt === 60 ||  result.rt === 28){
					$('.resule-status-box').hide()
				}else if(result.rt === 3){
					$(".resule-status-box").show();
				}else{
					if( result.rt === 8 || result.rt === 23 || result.rt === 35 || result.rt === 46){
						HdGame.statusMsg(result.msg);
					}else{
						HdGame.showMsg("系统繁忙，请稍后重试",0,"关闭",function(){},true);
					}
					return;
				}
				var arg={
					isSuc:result.success,
					giftStyle:result.awardStyle,
					giftName:result.awardName,
					giftCode:result.awardCode,
					giftImage:result.awardImage,
					awardImageW:result.awardImageW,
					awardImageH:result.awardImageH,
					awardIndex:result.awardIndex,
					isOutAwardNum:result.rt === 3,
				};
				if(HdGame.getType(fn) === 'function'){
					fn(arg,result);
				}else{
					HdGame.resulePoup.show(arg);
				}
			}
		});
	}

	//改版前的联系兑奖提示语
	HdGame._awardLinkMsg = '获奖者需填写联系电话方可查看兑奖码兑奖';
	HdGame._luckDrawFunc = luckDraw;
	//hdgame.src.js中判断游戏是否开启两位小数点  jmin
	HdGame._showTowPointNum = !true;









	HdGame.initChangePoup({
		rankUrl        : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=getRankList&aid=15981322&gameId=6&style=14&openId=oosnVwtFox7jHfxzydnrM0SfQy9c',
		awardUrl       : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=getGiftList&aid=15981322&style=14',
		getRegAwardUrl : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=getRegAwardList&aid=15981322&gameId=6&style=14&openId=oosnVwtFox7jHfxzydnrM0SfQy9c',
		openId         : 'oosnVwtFox7jHfxzydnrM0SfQy9c',
		gameId         : 6,
		mhaveScore     : (true && gameType != 3),
		informUrl      : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=setInformNum&aid=15981322&gameId=6&openId=oosnVwtFox7jHfxzydnrM0SfQy9c',
		hasReport      : false,
		afterWxCard    : true
	});
	HdGame.resulePoup.init({
		drawType  : 1,
		checkRegUrl:'//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=checkRegNum&aid=15981322&gameId=6&openId=oosnVwtFox7jHfxzydnrM0SfQy9c',
		regUrl    : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=setPlayerReg&aid=15981322&gameId=6&openId=oosnVwtFox7jHfxzydnrM0SfQy9c&flag1=true',
		home      : typeof home !== 'undefined' ? home : null,
		again     : typeof gameRestart !== 'undefined' ? gameRestart : null,
		giftInit  : HdGame._luckDrawFunc,
	});
   HdGame.initJsFoot({"rulesortstr":"abcde","drawType":1,"hostName":"宝宝玩英语人力行政中心","hostLink":"http://","menuLink":"https://15981322.h40.faiusr.com/2/6/ACgIABACGAAg94OF4wUosdWs5QQwggI4ggI.jpg","fromFav":"","openAwardExp":true,"isHideFxts":true,"supportUrl":"http://mp.weixin.qq.com/s?__biz=MjM5MTk5MjI3OA==&mid=209854000&idx=1&sn=82241d924839270d3ea820ad2d56c01b#rd","isAdverQRCode":false,"skillSupport":"凡科互动","showJoinNum":true,"showRedDot":false,"showMDRedDot":false,"showAwardBtn":false,"isSelAwardLine":false,"showSkillSup":true,"menuStyle":3,"soundIcon_l":"0.75rem","soundIcon_t":"1rem","titleImg_path_def":"//hdg.faisys.com/image/bhmn/title.png?v=201509051300","startImg_path_def":"//hdg.faisys.com/image/bhmn/startBtn.png?v=201509051300","awardIconImgPath_def":"//hdg.faisys.com/image/ruleImg_red.png","titleImg_w_def":"12rem","titleImg_h_def":"8rem","startBtn_w_def":"7.5rem","startBtn_h_def":"2rem","logoImg_w_def":"2rem","logoImg_h_def":"2rem","awardIcon_w_def":"3rem","awardIcon_h_def":"3rem","homeBgPath_def":"//hdg.faisys.com/image/bhmn/homeBg.jpg?v=201509051300","gameBg2Path_def":"","gameBgPath_def":"//hdg.faisys.com/image/bhmn/gameBg.png?v=201509081300","headImg2":"","headImg3":"","headImg4":"","dangerType":1,"isZhuLi":false,"getRegAwardUrl":"//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=getRegAwardList&aid=15981322&gameId=6&style=14&openId=oosnVwtFox7jHfxzydnrM0SfQy9c","isHideTitle":false})

	function startBtnDelay(){
		$('.titleImg').removeClass('titleDown').addClass('titleDown');
		$('#startBtnImg').removeClass('startTada');

		hg.sound.pauseAll();

		setTimeout(function(){
			$('#startBtnImg').addClass('startTada');
		},1000);
	}
	function showAwardDetail4Draw(fromFav){
		HdGame.changePoup(3,'',true);
		home('showAward',fromFav);
		if(g_config.isYKY){
			$('#poupInfoBox').show();
		}
	}
	function showRank(){
		HdGame.changePoup(1,'',true);
		$('#awardDetailBox').hide();
	}
	function showRule(isAnimation){
		$('#activityKit').hide();
		if(g_config.withAwardFinish){
			HdGame.changePoup(2,'',true);
		}else{
			HdGame.changePoup(2,'',isAnimation);
		}
		$('#awardDetailBox').hide();
	}
	function activateSound(){ //兼容ios下 WebAudio类型的对象无法自动播放，必须在点击事件中播放过一次，才允许播放
		try{
			if(HdGame.isIPhone() && hg.sound.list && hg.sound.list.length > 0 && !hg.sound._activate){
				$.each(hg.sound.list, function(i, val) {
					var data = hg.sound.cache[i];
					if(i > 0 && data && data.soundType == "LWebAudio"){
						data.play();
						data.stop();
					}
				});
				hg.sound._activate = true;
			}
		}catch(e){
			HdGame.logStd("activateSoundErr",e);
		}
	}
	function startBtnAjax(event, data, callback){
		HdGame.tlog("startBtnAjax：", "调用了");
		var self = this;
		var args = arguments;
		var isStartAction = true;
		function checkAreaLimit(){
			if(g_config.isOpenAreaLimit){
				HdGame.tlog('ipInfo:', g_config.ipInfo);
				return HdGame.checkAreaLimitByWx(g_config.ipInfo, g_config.areaLimitList, '', isStartAction);
			}

			return $.Deferred('resolve');
		}
		function checkGameState(){
			return $.Deferred(function(defer){


				if( !hg.fireWith('startGamehead', self, [event, data]) ){
					return defer.reject();
				}

				return defer.resolve();
			});
		}
		function checkJoinNum(){
			HdGame.tlog('startBtnAjax :', 'checkJoinNum');
			var msg;

			function showMsg(){
				msg = '本活动参与人数已达到最大限制。如有疑问，请与主办方联系。';



				HdGame.statusMsg(msg);
			}

			return $.Deferred(function(defer){

				// 参团者不走建团限制逻辑
				if( (g_config.style == 71 && data) || g_config.style != 71 ){
					if(g_config.$isLimitJoinNum){ // 如果缓存了flag则进行处理
						showMsg();
						return defer.reject();
					}

					if(typeof g_config.$isLimitJoinNum === 'undefined'){
						return HdGame.getIsOutofJoinNumFlag().then(function(result){
							// 缓存flag之后不再进行检测
							g_config.$isLimitJoinNum = result.isOutofJoinNum;
							if(result.isOutofJoinNum){
								showMsg();
								defer.reject();
							}else{
								defer.resolve();
							}
						}).fail(function(){
							// 如果失败，不缓存flag，再次进入时继续获取结果
							hg.fire('luckDrawErr');
							defer.reject();
						});
					}

					// 缓存了flag并且通过了，则resolve
					return defer.resolve();
				}

				return defer.resolve();
			});
		}
		function checkLuckDrawAndBlack(){
			return $.Deferred(function(defer){
				// 助力游戏点击参与时，前端先做判断还有没有参与机会




				return defer.resolve();
			});
		}
		function checkForcedAttention(){


			return $.Deferred('resolve');
		}
		function checkAccessKeyOnce(){


			return $.Deferred('resolve');
		}
		function beforeStartGame(){
			return $.Deferred(function(defer){

					if (g_config.afterLinkModify && HdGame.shouldRegInfo(2, args, self) ){
						return defer.reject();
					}


					if( gameType == 3 && g_config.isCheckPlayTimes && PlayInfo.getTotalRemainTimes() <= 0 ){
						HdGame.statusMsg(8);
						return defer.reject();
					}
					if( gameType == 3 && g_config.isCheckPlayTimes && PlayInfo.getTodayRemainTimes() <= 0 ){
						HdGame.statusMsg(7);
						return defer.reject();
					}

				if( !hg.fireWith('beforeStartGame', self, [false, event, data]) ){
					return defer.reject();
				}

				return defer.resolve();
			});
		}
		function showGame(){

			$('.homeBtnBox,.bottomSkill').hide();
			$('.footerBox').hide();
			$('.home,#ruleImg').hide();
			$('.gameBox').show();
			if(typeof hg.sound.cache[0] !== 'undefined' && typeof hg.sound.cache[0].playing !== 'undefined' && !hg.sound.cache[0].playing && g_config.style != 48 && g_config.style != 49 && g_config.style != 69){
				hg.sound.readyPlay(0, 0, 'loop');
			}
		}
		function complete(result){
			HdGame.hideLoadToast();
			HdGame.otherAjaxComplete();

			if(callback){
				callback.call(self, result, event, data, showGame);
			}
		}
		function handleResult(){
			function logs(){

				HdGame.logDog(1000002, 14);
				HdGame.LogFaiOpenId(1000230, 0);
				if( g_config.realVer >= HdVerDef.ZS ){
					HdGame.logDog(1000179, g_config.realVer + 1);
				}else{
					HdGame.logDog(1000179, g_config.authVer + 1);
				}
				// if(isJoinThemeGame){
				// 	HdGame.logDog(1000219, 3 + g_config.isAOpenId);
				// }
				HdGame.logObjDog(1000092, 1, 6);
			}
			function cookies(){
				var cookOpt = {
					domain: '15981322-6.hd.faisco.cn',
					expires: 1,
					path: '/'
				};
				$.cookie('gps_province', HdGame.encodeUrl(g_config.ipInfo.provice), cookOpt);
				$.cookie('gps_city', HdGame.encodeUrl(g_config.ipInfo.city), cookOpt);
			}

			if(hg.showGameBox){
				showGame();
			}
			console.log('showGameBox: ' + hg.showGameBox);

			logs();


				HdGame.addJoinGameBehavior();


			cookies();

			complete(true);

			hg.fireWith('startGame', self, [false, event, data, showGame]);
		}
		function handleFail(){
			complete(false);
		}

		activateSound();
		HdGame.ajaxLoad.show();

		$.Deferred('resolve')
			.then(checkAreaLimit)
			.then(checkGameState)
			.then(checkJoinNum)
			.then(checkLuckDrawAndBlack)
			.then(checkForcedAttention)
			.then(checkAccessKeyOnce)
			.then(beforeStartGame)
			.then(handleResult)
			.fail(handleFail);
	}


		function gameOver(_gameScore, callBack, option, showAjaxBar){

				if(_gameScore === 'fail'){
					setTimeout(function(){
						HdGame.resulePoup.show({
							isSuc:false,
							gameScore:"fail",//闯关失败
							minScore:200,
							bestScore:'190',
							gameType:gameType,
							rank:95,
							count:drawTimesLimit-count<0 ? 0:(drawTimesLimit-count),
							isLimitDrawTotal:isLimitDraw,
							totalCount: drawTotalLimit - totalCount < 0 ? 0 : (drawTotalLimit - totalCount)
						});
					},900);
					return;
				}
				if(isNaN(_gameScore) || _gameScore < 0){
					_gameScore = 0;
				}
				if(false){//奥运男篮游戏没有开始按钮，点击支持直接调gameOver;
					if(g_config.afterLinkModify && HdGame.shouldRegInfo(2,arguments,this)){
						return;
					}
				}else{
					var infoType = 1;
					if(gameType == 3 || gameType == 1){
						infoType = 3;
					}
					if(gameType != 1 && HdGame.shouldRegInfo(infoType,arguments,this)){
						return;
					}
				}
				$('.ajaxLoadBg').show();
				$('.ajaxLoadBar').addClass('ajaxLoad');
				HdGame.showLoadToast('数据加载中');
				var _gameScoreStr = _gameScore + '';
				if(false){
					_gameScoreStr = changeTwoDecimal_f(_gameScore);
				}
				var info = {headImg : "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTLrib75GH9U6hC6TOcfkZzYSbsGqrOHFyjxUTEfpMAL23kzuaFtEJT9cHNyRBAABefq39fQxCT6nfQ/132"};
				g_config.awardUsername && (info.ausername = g_config.awardUsername);
				g_config.awardPhone && (info.aphone = g_config.awardPhone);
				g_config.awardAddress && (info.aadress = g_config.awardAddress);
				info.ip = '223.104.3.142';
				var params = {
					gameId: 6,
					style: 14,
					achieve: HdGame.encodeBase64('"'+_gameScoreStr+'"') + "0WNbID7mV3OldDZ9Qz4ld5N4AjY2gDM",
					openId: "oosnVwtFox7jHfxzydnrM0SfQy9c",
					name: g_config.userName,
					awardInfoB: g_config.awardInfoB,
					city_gps: typeof g_config.ipInfo.city != 'undefined' ? g_config.ipInfo.city : '',
					province_gps: typeof g_config.ipInfo.provice != 'undefined' ? g_config.ipInfo.provice : ''
				};
				HdGame.tlog("userName",g_config.userName);

				params.info = $.toJSON(info);
				if(false){
					params.fromPlayer = "";
				}
				if(false){
					var consumption = hg.time.gameCostTime.toFixed(2);
					if(gameTimeType ==2){
						consumption = ((new Date().getTime() - g_config.gameStartTime)/1000).toFixed(2);
					}
					params.consumption = HdGame.encodeBase64('"'+consumption+'"') + "0WNbID7mV3OldDZ9Qz4ld5N4AjY2gDM";
				}
				if(_ruleInfo.open){
					params._ruleInfo = $.toJSON(_ruleInfo);
				}
				$.extend(params,option);
				$.ajax({
					type : 'post',
					url : '//15981322-6.hd.faisco.cn/ajax/hdgame_h.jsp?cmd=setAchieve&aid=15981322&playerId='+g_config.playerId+'&gameScore='+_gameScore+'&playerOrigin='+g_config.playerOrigin,
					data : params,
					error : function(){
						HdGame.hideLoadToast();
						HdGame.otherAjaxComplete();
						$('#timeUpImg,.timeUpImg').removeClass('tada');
						var rt = {
							rt:-999,
							msg:"ajax返回错误"
						};
						if (!window.navigator.onLine) {
							rt.msg = "网络连接失败，请检查你的网络设置!";
						}
						if (callBack) {
							if (callBack(rt, rt)) {
								alert(rt.msg);
							}
						} else {
							alert(rt.msg);
						}
						HdGame.tlog('gameOverErr',$.toJSON(arguments));
					},
					success : function(data){
						HdGame.hideLoadToast();
						HdGame.tlog('gameOver',data);
						var r = $.parseJSON(data);
						var isShowPoup = true;
						if(!showAjaxBar){
							HdGame.otherAjaxComplete();
						}
						if(r.rt == 0){
              _gameScoreStr=330
							var arg={
								isSuc:r.isSuc,
								gameScore:_gameScoreStr,
								minScore:200,
								bestScore:r.score,
								gameType:gameType,
								rank:r.rank,
								beat:r.beat,
								count:drawTimesLimit-count<0 ? 0:(drawTimesLimit-count),
								isLimitDrawTotal:isLimitDraw,
								totalCount:	drawTotalLimit-totalCount<0 ? 0:(drawTotalLimit-totalCount),
								isEqualDraw:false,
								gameCostTime:consumption,
								bestCostTime:r.bestCostTime
							};
							setTimeout(function(){
								var callBackArg = {rt:r.rt,msg:r.msg,arg:arg,pId:r.playerId,firstScore : r.firstScore};
								g_config.playerId = r.playerId;
								if(false){
									callBackArg.infoList = r.infoList;
								}
								callBack && (isShowPoup = callBack(callBackArg,r));
								$('#timeUpImg,.timeUpImg').removeClass('tada');
								isShowPoup !== false && HdGame.resulePoup.show(arg);
							},300);
							PlayInfo.addPlayTimes(1);
							g_config.achieveToken = r.achieveToken;
						}else if(r.rt == 11){
							alert("已被检测到有作弊行为，再次被检测将永久禁止参与本游戏！");
						}else if(r.rt == 12){
							alert("由于作弊行为，该微信号已永久禁止参与本游戏！");
						}else if(r.rt == 23){
							HdGame.statusMsg(3);
						}else if (r.rt == 44) {
							HdGame.statusMsg(8);
						}else{
							callBack && (isShowPoup = callBack({rt:r.rt,msg:r.msg},r));
							if(isShowPoup !== false){
								HdGame.logStd("gameOverErr",'style='+g_config.style+' gameScore='+_gameScore+' faiOpenId=oosnVwtFox7jHfxzydnrM0SfQy9c data='+$.trim(data));
								HdGame.resulePoup.show({
									isSuc:false,
									gameScore:'--',
									minScore:200,
									bestScore:'--',
									gameType:gameType,
									rank:'--',
									beat:'--',
									count:drawTimesLimit-count<0 ? 0:(drawTimesLimit-count),
									isLimitDrawTotal:isLimitDraw,
									totalCount: drawTotalLimit-totalCount<0 ? 0:(drawTotalLimit-totalCount),
									isEqualDraw:false
								});
							}
							return;
						}
						if(r.rt !== 0){
							callBack && callBack({rt:r.rt,msg:r.msg},r);
						}
					}
				});
				params = info = option = null;
				function changeTwoDecimal_f(x) {
					var f_x = parseFloat(x);
					if (isNaN(f_x)) {
						alert('function:changeTwoDecimal arguments error');
						return x;
					}
					var f_x = Math.round(x * 100) / 100;
					var s_x = f_x.toString();
					var pos_decimal = s_x.indexOf('.');
					if (pos_decimal < 0) {
						pos_decimal = s_x.length;
						s_x += '.';
					}
					while (s_x.length <= pos_decimal + 2) {
						s_x += '0';
					}
					return s_x;
				}

		}


	hg.on('beforeDraw',function(_arguments){
		var thisInfoType = 2;
		console.log(thisInfoType,_arguments)
		if(g_config.afterLinkModify && HdGame.shouldRegInfo(thisInfoType,_arguments,this)){
			hg.fire('afterLinkModify');
			return false;
		}
		thisInfoType = 3;
		if(g_config.afterLinkModify && HdGame.shouldRegInfo(thisInfoType,_arguments,this)){
			hg.fire('afterLinkModify');
			return false;
		}
	}).on('luckDrawErr',function(){
		HdGame.showMsg('网络无法连接，请检查网络', 0, '关闭', function(){
			HdGame.resulePoup.startStatus = true;
		},true);
	});

	var createActiveForMinapp = $.throttle(function(){
		HdGame.logDog(1000260, 2);  //点击马上创建log
		wx.miniProgram.redirectTo({url: '/pages/editActive/editActive?page=base&modId=0'});
	}, 200);

	var shareActiveForMinapp = $.throttle(function(){
		wx.miniProgram.navigateTo({url: '/pages/shareActive/shareActive?aid=15981322&gameId=6'});
	}, 200);

	function getMoreTimes(){
		if(false && totalCount >= drawTotalLimit){
			HdGame.statusMsg(6);
			return;
		}
		if (true && count >= drawTimesLimit) {
			HdGame.statusMsg(4);
			return;
		}
	}

	$(function(){
		/**
		 * 管理态监听编辑页的事件
		 */

		/**
		 * 管理态监听广告修改的事件
		 */




		if(_manage){
			$("#resule-gift-sucImg").parent().append('<span class="hd-left-arrow theArrowSpan hide"></span><span class="hd-right-arrow theArrowSpan hide"></span>');
		}else{
			HdGame.showWxCodePage(null, "http://m.faibak.com/hd/manage/myCardBag.jsp", "https://15981322-6.hd.faisco.cn/bhmn.jsp?id=cyqe9rI-N1I35xQRFUCppg&aid=15981322&fromQrcode=true&faiRepeateCome=true&appid=wx50775cad5d08d7ad");
			HdGame.tlog('history',history.length);
		}
		HdGame.imgReady("http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAgpqfXwwUo6ODAVzB4OHg.png",function(){
			var originSize = {width:$("#ruleImg").width(),height:$("#ruleImg").height()};
			var nowSize = HdGame.Img.calcSize(this.width,this.height,originSize.width,originSize.height,HdGame.Img.MODE_SCALE_DEFLATE_FILL);
			$("#ruleImg").css({
				"background-size": "100% 100%",
				"background-image":"url("+"http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAgpqfXwwUo6ODAVzB4OHg.png"+")",
			}).attr("_src","http://7020498.h40.faiusr.com/4/164/ACgIABAEGAAgpqfXwwUo6ODAVzB4OHg.png");
		});


			(function () {
				if (!HdGame.IsPC()) {
					var playBgFlag = false;
					$(window).on("blur", function (e) {
						if (window.frames["contactInputIframe"]) return;
						if (hg.sound.get(0) && hg.sound.get(0).playing && !playBgFlag) {
							hg.sound.pause(0);
							playBgFlag = true;
						}
					}).on("focus", function (e) {
						if (window.frames["contactInputIframe"]) return;
						if (playBgFlag) {
							playBgFlag = false;
							hg.sound.play(0);
						}
					});
				}
			} ());


		hg.fire('jsFootEnd');
	});
</script>


<script type="text/javascript">

	$.ajaxSettings.errorCall.push(function(callbackContext, status, error){
        if(/logAjaxErr_h\.jsp/.test(callbackContext.url) && /cmd=hdajaxErr/.test(callbackContext.url)){
            return;
        }
		var faiAjax = Fai.top._faiAjax || $;
		if( faiAjax ){
			faiAjax.ajax({
				type	: "post",
				url		: "//15981322-6.hd.faisco.cn/ajax/logAjaxErr_h.jsp?cmd=hdajaxErr&error="+error+"&status="+status+"&openId=oosnVwtFox7jHfxzydnrM0SfQy9c&aid=15981322&gameId=6",
				data	: 'msg=' + HdGame.encodeHtml('ajaxUrl='+HdGame.encodeUrl(callbackContext.url)+';refer='+HdGame.encodeUrl(Fai.top.location.href))
			});
		}
	});

</script>
</body>
</html>
